Easy to use git shortcut commands aimed to increase developer's productivity in Linux environment.
Shell scripts are added globally.
Scripts are added to /usr/local/bin (with executable permissions) to allow global execution.
Clone this repo, navigate to it and execute bash install
in terminal.
Navigate to this repo, execute bash uninstall
in terminal.
Shell Shortcut | Git Command | What it does |
---|---|---|
gaa | git add . | β Add all changes |
gacp | git add . && git commit -m <message> && git push origin <branch> |
β Add all changes, commit with message and push to specific branch |
gc | git checkout <branch> |
β Switch to another branch |
gcb | git checkout -b <branch> |
β Create new and switch to another branch from current |
gce | git config user.email <email> |
β Set config for email |
gcmsg | git commit -m <message> |
β Commit changes with message |
gcn | git config user.name <name> |
β Set config for name |
ghelp | /**/ | print out overview of commands |
gm | git merge <branch> |
β Merge named branch to current |
gpo | git push origin <branch> |
β Push changes to specific branch |
gpom | git push origin master | β Push changes to master |
grh | git reset --HARD | CAUTION. Delete all changes |
grlb | git delete -d <branch> |
CAUTION. Delete branch locally if branch is clean |
grlbf | git delete -D <branch> |
CAUTION. Delete branch even if its not clean |
grrb | git push origin --delete <origin-branch> |
CAUTION. Delete remote branch |
gs | git status | β Display state of current working dir |
gpull | git pull | β Pull changes |
gpullo | git pull origin <branch> |
β Pull changes from origin |