gitx

command module
v0.0.0-...-28e0820 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

README

gitx

gitx is a simple command line tool to help you manage your git repositories.

Installation

go install github.com/snowmerak/gitx@latest

Usage

gitx [command]

Commands

gitx supports the following commands:

config
Initialize configuration
gitx config init [<ssh-key-name>]

The ssh key pair is in the ./.gitx.
The file names are ./.gitx/[<ssh-key-name>].prv.pem and ./.gitx/[<ssh-key-name>].pub.pem.

Initialize git ignore configuration
gitx config ignore init

This command will create a .gitignore file in the current directory.
And add some rules to it.

ssh
Generate SSH key
gitx ssh generate <name>

The ssh key pair will be generated in the ./.gitx/[<ssh-key-name>].prv.pem and ./.gitx/[<ssh-key-name>].pub.pem.

fork
Fork a feature branch
gitx fork feature <name>

Switch to the feature/<name> branch.

Fork a proposal branch
gitx fork proposal <name>

Switch to the proposal/<name> branch.

Fork a hotfix branch
gitx fork hotfix <name>

Switch to the hotfix/<name> branch.

Fork a bugfix branch
gitx fork bugfix <name>

Switch to the bugfix/<name> branch.

Fork a daily branch
gitx fork daily <name>

Switch to the daily/<name> branch.

Revert a branch
gitx fork revert

Revert to the previous branch.

Pull
gitx pull

Pull changes from remote.

Push
gitx push <message>

Push changes to remote.

Changes
gitx changes

Show changes

Example:

11:39PM INF changes
Created files:
  pages/contents.md

Changed files:
  .DS_Store
  journals/2024_01_26.md

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL