Skip to content

Instantly share code, notes, and snippets.

@jancimajek
Last active August 29, 2015 14:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jancimajek/df2e4fc8a8552cd9582a to your computer and use it in GitHub Desktop.
Save jancimajek/df2e4fc8a8552cd9582a to your computer and use it in GitHub Desktop.
Git config
[user]
name = Jan Majek
email = jan.majek@ft.com
[push]
# Pushes only curent branch upstream (as opposed to "matching" (default) which would push all branches)
# default = upstream
[credential]
# helper = osxkeychain
[help]
# If there is only one matching command, it will execute it after X dediseconds (1/10s)
autocorrect = 1
[color]
# Colors the output by default
ui = true
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
dc = diff --cached
lg = log -p
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
# Show files ignored by git:
ign = ls-files -o -i --exclude-standard
# Show unpushed commits in current branch
lolu = log --graph --decorate --pretty=oneline --abbrev-commit @{u}..
[branch]
autosetupmerge = true
[core]
# autocrlf = input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment