Last active
March 25, 2017 07:27
-
-
Save chulkilee/7045484 to your computer and use it in GitHub Desktop.
Git Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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