Skip to content

Instantly share code, notes, and snippets.

@krishna-shilpakar
Forked from millisami/.gitconfig
Created March 2, 2012 08:18
Show Gist options
  • Save krishna-shilpakar/1956736 to your computer and use it in GitHub Desktop.
Save krishna-shilpakar/1956736 to your computer and use it in GitHub Desktop.
Global settings for git at ~/.gitconfig
[user]
name = your_username
email = [email protected]
[github]
user = github_username
token = github_your_own_token
[core]
#Global .gitignore file
excludesfile = /Users/millisami/.gitignore
editor = mate -w
[alias]
co = checkout
ci = commit
st = status
b = branch
dif = diff
sh = stash
b = branch -v
r = remote -v
t = tag -l
unstage = reset HEAD
uncommit = reset --soft HEAD~1
dc = diff --cached
lg = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
unstaged = diff
current-branch = !git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||'
# Usage: git track origin/feature-123-login-form
track = checkout -t
[mirror]
summary = true
[apply]
whitespace = nowarn
[color]
branch = auto
diff = auto
status = auto
ui = auto
[color "branch"]
current = yellow
local = yellow
remote = green
[color "diff"]
meta = yellow
frag = magenta
old = red
new = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[push]
default = current
[status]
submodule = 1
[branch]
autosetuprebase = always
[branch "master"]
rebase = true
[web]
browser = open
[instaweb]
httpd = webrick
[merge]
summary=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment