Bash-git-util is designed to be used in conjunction with the bash shell. It abstracts away the git commands and allows to perform those in an interactive way.
Once you have installed bash-git-util, you can start using some frequently used git operations form your bash shell.
For example, you can use the git_switch_interactive function to switch between branches by simply choosing one form a dropdown
you will need:
- A system with a bash shell
- Git installed on your system (requires git v1.7.10+)
For now it could be installed directly by cloning this repo
- go to the directory you want to keep this repo
- then clone this repo using
git clone - and source that directory form shell
export GIT_UTIL_DIR="$HOME/dev/bash-git-util"
[ -s "$GIT_UTIL_DIR/bash-git-util.sh" ] && \. "$GIT_UTIL_DIR/bash-git-util.sh" This loads git_functionsImportant: The GIT_UTIL_DIR environment variable should point to the directory where bash-git-util is located.
If you have bash-git-util in a different directory, you can change the value of GIT_UTIL_DIR accordingly.
TODO: add the documentation of usage