Last active
June 8, 2016 08:31
-
-
Save jlnwlf/9fdb5e818528db849717 to your computer and use it in GitHub Desktop.
git basic custom aliases and configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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