Skip to content

Instantly share code, notes, and snippets.

@nicolasblanco
Created October 13, 2017 15:24
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 nicolasblanco/3f2306690b50943dbe9af4dd683287cc to your computer and use it in GitHub Desktop.
Save nicolasblanco/3f2306690b50943dbe9af4dd683287cc to your computer and use it in GitHub Desktop.
[alias]
co = checkout
st = status -sb
br = branch
ci = commit
fo = fetch origin
d = !git --no-pager diff
dt = difftool
stat = !git --no-pager diff --stat
# Clean merged branches
sweep = !git branch --merged master | grep -v 'master$' | xargs git branch -d && git remote prune origin
# http://www.jukie.net/bart/blog/pimping-out-git-log
lg = log --graph --all --pretty=format:'%Cred%h%Creset - %s %Cgreen(%cr) %C(bold blue)%an%Creset %C(yellow)%d%Creset'
# Serve local repo. http://coderwall.com/p/eybtga
# Then other can access via `git clone git://#{YOUR_IP_ADDRESS}/
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git
m = checkout master
# Removes a file from the index
unstage = reset HEAD --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment