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.gitFor 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
.bashrcfileOnce GitEZ is cloned, the
.bashrcfile will be available at the root of GitEZ directory.Make sure to note the path where you cloned GitEZ !
-
Edit your user
~/.bashrcfileOpen your
~/.bashrcfile on your user directory with a text editor, such asnanoorvim(or Notpad in Windows):nano ~/.bashrcIt could be
~/.bash_profileor~/.profile. -
Add the following lines to the end of the
~/.bashrcfileReplace
/path/to/GitEZwith 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