gitx is a simple command line tool to help you manage your git repositories.
go install github.com/snowmerak/gitx@latest
gitx [command]
gitx supports the following commands:
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
.
gitx config ignore init
This command will create a .gitignore
file in the current directory.
And add some rules to it.
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
.
gitx fork feature <name>
Switch to the feature/<name>
branch.
gitx fork proposal <name>
Switch to the proposal/<name>
branch.
gitx fork hotfix <name>
Switch to the hotfix/<name>
branch.
gitx fork bugfix <name>
Switch to the bugfix/<name>
branch.
gitx fork daily <name>
Switch to the daily/<name>
branch.
gitx fork revert
Revert to the previous branch.
gitx pull
Pull changes from remote.
gitx push <message>
Push changes to remote.
gitx changes
Show changes
Example:
11:39PM INF changes
Created files:
pages/contents.md
Changed files:
.DS_Store
journals/2024_01_26.md