Last active
December 28, 2015 23:59
-
-
Save jzntam/15b21a3729a3a320cd5a to your computer and use it in GitHub Desktop.
Git Aliases used by Brent
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 gs="git status" | |
alias gbr="git for-each-ref --sort=-committerdate refs/heads/" | |
alias ga="git add" | |
alias gaa="git add -A" | |
alias gc="git commit" | |
alias gci="git ci" | |
alias gph="git push origin HEAD" | |
alias gphk="git push heroku master" | |
alias gdc="git diff --cached" | |
alias gd="git diff" | |
alias gbd="git branch -d" | |
alias gbD="git branch -D" | |
alias gss="git stash show -p " | |
brent [2:55 PM] | |
and in my .gitconfig | |
brent [2:55 PM] | |
[alias] | |
timelog = log --pretty=format:'%Cred%h%Creset - %C(yellow)%ae%Creset - %Cgreen%cd%Creset - %s%Creset' --abbrev-commit --date=iso | |
aa = add -A | |
co = checkout | |
ci = commit --verbose | |
bd = branch -d | |
bD = branch -D | |
sshow = "!f() { git stash show stash^{/$*}; }; f" | |
sapply = "!f() { git stash apply stash^{/$*}; }; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment