Skip to content

Instantly share code, notes, and snippets.

@zyrolasting
Created September 11, 2018 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zyrolasting/2c22733fd0a8ba32fc6815f3c4b7c06f to your computer and use it in GitHub Desktop.
Save zyrolasting/2c22733fd0a8ba32fc6815f3c4b7c06f to your computer and use it in GitHub Desktop.
Useful .gitconfig
[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