Created
September 11, 2018 14:09
-
-
Save zyrolasting/2c22733fd0a8ba32fc6815f3c4b7c06f to your computer and use it in GitHub Desktop.
Useful .gitconfig
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
[user] | |
name = Your Name | |
email = your.name@example.com | |
[alias] | |
co = checkout | |
br = branch | |
st = status | |
ci = commit | |
ca = commit --amend --no-edit | |
fr = !git fetch && git rebase | |
rbi = rebase -i | |
brc = !git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -d | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
ff = !sh -c 'git submodule update --remote --init --recursive && git pull --ff-only' | |
[push] | |
default = simple | |
[apply] | |
whitespace = fix | |
[push] | |
default = simple |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment