Created
April 7, 2017 21:39
-
-
Save jasco/970ee0f5f0fded33b33e2d0ff77f7517 to your computer and use it in GitHub Desktop.
Git Config
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
[user] | |
name = {name} | |
email = {email} | |
[diff] | |
tool = kdiff3 | |
[core] | |
autocrlf = input | |
editor = /usr/local/bin/vim | |
[alias] | |
# Short status, one line per file | |
st = status -s | |
# Only show status for tracked files | |
stn = status -s -uno | |
ci = commit | |
br = branch | |
co = checkout | |
df = diff | |
# log with patches - show diff associated with each commit after log message | |
lg = log -p | |
# Decorated oneline view of branch history | |
vlog = log --graph --oneline --date-order --decorate --color --all | |
# Decorated oneline view of branch history along with committer and date | |
vvlog = log --graph --date-order --decorate --color --all --date=short --pretty=format:"%h%x09%an%x09%ad%x09%s" | |
# ls-files with commit status decoration (TODO:improved description) | |
ls-fstatus = "! cd $PWD/$GIT_PREFIX; git ls-files -cdmoskt --abbrev=8 | while read -r line; do \ | |
fn=$(echo \"$line\" | sed \"s/.*\\s\\([[:print:]]\\+\\)/\\1/\"); \ | |
st=$(git status -s "$fn" | printf \"%-02s \" $(sed \"s/\\([[:print:]]\\+\\)\\s.*/\\1/\")); \ | |
echo \"$st- $line\"; \ | |
done " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment