Created
April 10, 2017 13:48
-
-
Save coderade/83f110b69f5a0b3e6d1feffe2e78a02a to your computer and use it in GitHub Desktop.
Git shortcuts
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] | |
st = status | |
ci = commit | |
br = branch | |
co = checkout | |
df = diff | |
ds = diff --staged | |
lg = log -p | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all --date=local | |
ls = ls-files | |
unstage = reset HEAD | |
# Show files ignored by git: | |
ign = ls-files -o -i --exclude-standard | |
[core] | |
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol |
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 gc="git commit" | |
alias gr="git checkout" | |
alias ga="git add" | |
alias gl="git lola" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment