Skip to content

Instantly share code, notes, and snippets.

@chulkilee
Last active March 25, 2017 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chulkilee/7045484 to your computer and use it in GitHub Desktop.
Save chulkilee/7045484 to your computer and use it in GitHub Desktop.
Git Configuration
[alias]
# basic shortcut
br = branch
ci = commit
co = checkout
df = diff
rb = rebase
stat = status
# full info
branches = branch -a
remotes = remote -v
stashes = stash list
tags = tag -l
# commont tasks
co- = checkout --
dfc = diff --cached
dfl = diff HEAD^ HEAD
gr = grep --break --heading --line-number
st = status --short
# log formats
ld = log --pretty=format:\"%C(yellow)%h %ad%Cred%d %Creset%s%Cblue [%cn]\" --decorate --date=short
lg = log --pretty=format:\"%C(yellow)%h%Cred%d %Creset%s%Cblue [%cn]\" --decorate --graph --all
ll = log --pretty=format:\"%C(yellow)%h%Cred%d %Creset%s%Cblue [%cn]\" --decorate --numstat
ls = log --pretty=format:\"%C(yellow)%h%Cred%d %Creset%s%Cblue [%cn]\" --decorate
# high-level tasks
contributors = shortlog --summary --numbered
last = log -1 -p HEAD
precommit = diff --cached --diff-algorithm=minimal -w
unstage = reset HEAD --
[core]
autocrlf = input
excludesfile = ~/.gitignore_global
ignorecase = false
pager = less -F -X
quotepath = false
trustctime = false
[diff]
compactionHeuristic = true
mnemonicPrefix = true
renames = true
submodule = log
[log]
follow = true
[status]
showUntrackedFiles = normal
submoduleSummary = true
# https://help.github.com/articles/ignoring-files
# Editor
.idea/
*.swp
*.tmp
*.bak
.project
.classpath
.settings/
.loadpath
# Compiled source
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases
*.log
*.sql
*.sqlite
# OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db
# etc.
tmp/
##############################
# Language/software-specific #
##############################
# Java
*.class
*.jar
*.war
*.ear
# Jekyll
_site/
# Node
node_modules
# Python
*.py[cod]
*.egg
*.egg-info
# Ruby
*.gem
*.sassc
.sass-cache
*.rbc
.bundle
.yardoc
_yardoc
# Subversion
.svn/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment