Skip to content

curkovicf/git-shell-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‘‹ About πŸ‘‹

Easy to use git shortcut commands aimed to increase developer's productivity in Linux environment.
Shell scripts are added globally.

πŸ–₯️ Installation πŸ–₯️

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.

β›” Removal β›”

Navigate to this repo, execute bash uninstall in terminal.

Features

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

About

πŸŽ›οΈ Do not repeat yourself

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages