Skip to content

Instantly share code, notes, and snippets.

@urodoz
Created July 13, 2017 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save urodoz/9baffd57196977318f256da3f85c3c95 to your computer and use it in GitHub Desktop.
Save urodoz/9baffd57196977318f256da3f85c3c95 to your computer and use it in GitHub Desktop.
Set of useful Git alias and functions to increase productivity
alias gfo='git fetch origin'
alias gs='git status -sb'
# Automatically generates the bump commit and tags
# Usage: bump 1.0.4
function bump() {
echo "-- [$1] Bump commit"
git commit -am"Bump to $1"
echo "-- [$1] Tagging
git tag $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment