Created
October 13, 2017 15:24
-
-
Save nicolasblanco/3f2306690b50943dbe9af4dd683287cc to your computer and use it in GitHub Desktop.
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] | |
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