A collection of Bash aliases scripts to automate Git commands.
gez-fs
: Start a new feature.gez-ff
: Finalize a feature.gez-bs
: Start a bugfix.gez-bf
: Finalize a bugfix.gez-hs
: Start a hotfix.gez-hf
: Finalize a hotfix.gez-rs
: Start a release.gez-rf
: Finalize a release.gez-f
: Finish the current branch.gez-s
: Quick save (add + commit + push).gez-gm
: Get the master name branch.
Clone this repository :
git clone https://github.com/NeitsabTeguom/GitEZ.git
For Windows dont forget to install Git bash.
To use GitEZ's custom aliases and scripts, you can include GitEZ .bashrc
file in your personal ~/.bashrc
file.
-
GitEZ as executable for Linux
Make scripts executables for Linux
chmod -R +x /path/to/GitEZ/*.*
-
Locate the GitEZ
.bashrc
fileOnce GitEZ is cloned, the
.bashrc
file will be available at the root of GitEZ directory.Make sure to note the path where you cloned GitEZ !
-
Edit your user
~/.bashrc
fileOpen your
~/.bashrc
file on your user directory with a text editor, such asnano
orvim
(or Notpad in Windows):nano ~/.bashrc
It could be
~/.bash_profile
or~/.profile
. -
Add the following lines to the end of the
~/.bashrc
fileReplace
/path/to/GitEZ
with the absolute path where you cloned GitEZ.if [ -f /path/to/GitEZ/.bashrc ]; then . /path/to/GitEZ/.bashrc fi
For windows do not forget the disk drive letter :
if [ -f /c/path/to/GitEZ/.bashrc ]; then . /c/path/to/GitEZ/.bashrc fi
-
Reload your Bash configuration To apply the changes immediately, run the following command:
source ~/.bashrc
or
source ~/.bash_profile
or
source ~/.profile