Skip to content

Instantly share code, notes, and snippets.

@jlnwlf
Last active June 8, 2016 08:31
Show Gist options
  • Select an option

  • Save jlnwlf/9fdb5e818528db849717 to your computer and use it in GitHub Desktop.

Select an option

Save jlnwlf/9fdb5e818528db849717 to your computer and use it in GitHub Desktop.
git basic custom aliases and configuration
git config --global alias.actualize '!CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) && git checkout master && git pull && git checkout $CURRENT_BRANCH && git rebase master'
git config --global alias.st status
git config --global alias.graph "log --graph --pretty='%C(auto)%cn %d- %h %s (%ar)'"
git config --global alias.release '!BRANCH_TO_MERGE="$(git rev-parse --abbrev-ref HEAD)" ; git actualize && git checkout master && git merge --ff-only "$BRANCH_TO_MERGE" && git branch -d "$BRANCH_TO_MERGE"'
git config --global color.ui true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment