Last active
December 15, 2015 14:58
-
-
Save jeffsharpe/5277907 to your computer and use it in GitHub Desktop.
Excert from .gitconfig, aliases I use for git.
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] | |
br = branch | |
co = checkout | |
ct = commit | |
cam = commit -a -m | |
dc = diff --color | |
fix = commit --amend -C HEAD | |
head = !"git log -n1" | |
ignore = !([ ! -e .gitignore ] && touch .gitignore) | echo $1 >>.gitignore | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
master = checkout master | |
rb = rebase | |
rbc = rebase --continue | |
rbs = rebase --skip | |
rt = remote | |
sb = show-branch | |
st = status | |
staged = diff --staged | |
unstage = reset HEAD | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment