Skip to content

Instantly share code, notes, and snippets.

@timhugh
Last active April 19, 2018 21:13
Show Gist options
  • Save timhugh/9b6303ffcc00fbc2b84a to your computer and use it in GitHub Desktop.
Save timhugh/9b6303ffcc00fbc2b84a to your computer and use it in GitHub Desktop.
Git config
[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
@timurb
Copy link

timurb commented Aug 21, 2017

For la and ll I've always been using tig command — that is curses git frontend.
I recommend it for everyone.

@timhugh
Copy link
Author

timhugh commented Aug 28, 2017

Very neat! Thanks for the recommendation, @timurb 👍

@timhugh
Copy link
Author

timhugh commented Apr 19, 2018

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