Last active
April 19, 2018 21:13
-
-
Save timhugh/9b6303ffcc00fbc2b84a to your computer and use it in GitHub Desktop.
Git config
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
[core] | |
editor = vim | |
excludesfile = ~/.gitignore | |
[user] | |
name = Tim Heuett | |
email = tim.heuett@gmail.com | |
[push] | |
default = simple | |
[credential] | |
helper = osxkeychain | |
[alias] | |
br = branch -a | |
c = commit -m | |
ca = commit --amend --reuse-message=HEAD | |
cam = commit --amend -m | |
co = checkout | |
df = diff | |
dfs = diff --staged | |
dt = diff-tree --name-status -r | |
la = log --patch --stat --pretty=format:\"%C(bold red)%h %Cgreen%cr %Cblue%cn%C(yellow)%d %Creset%s\" | |
ll = log --pretty=format:\"%Cred%h %>(11,trunc)%Cgreen%cr %<(10,trunc)%Cblue%cn%C(yellow)%d %Creset%s\" | |
mm = merge -m | |
p = pull | |
rb = rebase | |
rba = rebase --abort | |
rbc = rebase --continue | |
rbi = rebase -i | |
st = status --short --branch | |
u = merge --no-commit --ff-only |
Very neat! Thanks for the recommendation, @timurb 👍
This gist is no longer in use -- check out https://github.com/timhugh/dotfiles for the up-to-date version
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For
la
andll
I've always been usingtig
command — that is curses git frontend.I recommend it for everyone.