Skip to content

Instantly share code, notes, and snippets.

@teoguso
Forked from xmunoz/.gitconfig
Last active December 11, 2019 10:51
Show Gist options
  • Save teoguso/bed6e19639361f3118d24efff990fa38 to your computer and use it in GitHub Desktop.
Save teoguso/bed6e19639361f3118d24efff990fa38 to your computer and use it in GitHub Desktop.
gitconfig
[push]
default = current
[user]
# Edit at your convenience
name = <Full name>
email = <[email protected]>
[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