Skip to content

Instantly share code, notes, and snippets.

@Jonty
Created October 12, 2015 10:09
Show Gist options
  • Save Jonty/5f264c276299a158ed2a to your computer and use it in GitHub Desktop.
Save Jonty/5f264c276299a158ed2a to your computer and use it in GitHub Desktop.
My /etc/gitconfig
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
tidy-remotes = !git remote prune origin
branch-name = !git branch | sed -e '/^[^*]/d' -e 's/^* //' -e 's/master/STOP_TRYING_TO_PUBLISH_MASTER_YOU_IDIOT/'
publish = !git push -u origin $(git branch-name)
unpublish = !git push origin :$(git branch-name)
undo-commit = reset --soft HEAD^
[core]
excludesfile = /etc/gitignore
[color]
UI = auto
diff = auto
[branch]
autosetuprebase = always
mergeoptions = --no-ff
[push]
default = upstream
[rerere]
enabled = 1
@philandstuff
Copy link

Nice! my st alias is status -bs which I find easier to scan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment