Skip to content

Instantly share code, notes, and snippets.

@xmunoz
Created October 10, 2016 20:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xmunoz/47cda94469c5157ae345c610a644390a to your computer and use it in GitHub Desktop.
Save xmunoz/47cda94469c5157ae345c610a644390a to your computer and use it in GitHub Desktop.
gitconfig
[push]
default = current
[user]
name = Cristina Munoz
email = hi@xmunoz.com
[core]
editor = /usr/local/bin/vim
pager = less
whitespace = fix
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[alias]
# pretty git graph
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
# add - record file contents to the index.
a = add
# branch - list, create, or delete branches.
b = branch
# commit - record changes to the repostiory.
c = commit
# diff - show changes between commits, commit and working tree, etc.
d = diff
# fetch - download objects and refs from another repository.
f = fetch
# grep - print lines matching a pattern.
g = grep
# log - show commit logs.
l = log
# merge - join two or more development histories together.
m = merge
# checkout - update the working tree to match a branch or paths; we use "o" to mean "out".
o = checkout
co = checkout
# pull - fetch from and merge with another repository or a local branch.
p = pull
# remote - manage set of tracked repositories.
r = remote
# status - show the working tree differences. (Expert users may prefer: status -sb)
s = status
# whatchanged - show logs with the differences introduced by each commit.
w = whatchanged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment