Created
November 20, 2017 09:14
-
-
Save patrickjahns/413647c7240b8c31e55f35b70fc84e29 to your computer and use it in GitHub Desktop.
Git Aliases
This file contains 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
alias gits='git status' | |
alias gitstat='git status -s' | |
alias gita='git add -A && git status -s' | |
alias gitcom='git commit -S -m' | |
alias gitacom='git add -A && git commit -aSm' | |
alias gitc='git checkout' | |
alias gitcm='git checkout master' | |
alias gitcd='git checkout development' | |
alias gitcgh='git checkout gh-pages' | |
alias gitb='git branch' | |
alias gitcb='git checkout -b' | |
alias gitdb='git branch -d' | |
alias gitDb='git branch -D' | |
alias gitf='git fetch' | |
alias gitr='git rebase' | |
alias gitp='git push -u' | |
alias gitpl='git pull' | |
alias gitfr='git fetch && git rebase' | |
alias gitfrp='git fetch && git rebase && git push -u' | |
alias gitpo='git push -u origin' | |
alias gitpom='git push -u origin master' | |
alias gitm='git merge' | |
alias gitmd='git merge development' | |
alias gitmm='git merge master' | |
alias gitcl='git clone' | |
alias gitclr='git clone --recursive' | |
alias gitamend='git commit --amend' | |
alias gitcundo='git reset --soft HEAD~1' | |
alias gitmpages='gitc gh-pages && gitm master && gitp && gitc master' | |
alias gitrao='git remote add origin' | |
alias gittrack='git update-index --no-assume-unchanged' | |
alias gituntrack='git update-index --assume-unchanged' | |
alias gitpullsubmodules='git submodule foreach git pull origin master' | |
alias gitremoveremote='git rm -r --cached' | |
alias gitlog="git log --graph --pretty=format:'%C(red)%h%C(reset) -%C(yellow)%d%C(reset) %s %C(green)(%cr) %C(blue)<%an>%C(reset)' --abbrev-commit" | |
alias gitlog-changes="git log --oneline --decorate --stat --graph --pretty=format:'%C(red)%h%C(reset) -%C(yellow)%d%C(reset) %s %C(green)(%cr) %C(blue)<%an>%C(reset)%n'" | |
alias git-browse="open `git remote -v | awk '/fetch/{print $2}' | sed -Ee 's#(git@|git://)#http://#' -e 's@org:@org/@' | head -n1`" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment