Last active
July 14, 2017 22:18
-
-
Save mujuni88/058f4bb933c63c463c419651f0f4e52d to your computer and use it in GitHub Desktop.
My GitHub config file
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> | |
[color] | |
ui = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] | |
meta = yellow bold | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
[color "status"] | |
added = yellow | |
changed = green | |
untracked = cyan | |
[alias] | |
cmt = commit | |
cam = commit -am | |
st = status | |
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 | |
please = push --force-with-lease | |
undo = reset --soft HEAD^ | |
recommit = commit -a -c ORIG_HEAD | |
commend = commit --amend --no-edit | |
stsh = stash --keep-index | |
staash = stash --include-untracked | |
staaash = stash --all | |
shorty = status --short -- | |
merc = merge --no-ff | |
br-ac = branch --sort=committerdate | |
br-desc = branch --sort=-committerdate | |
stash-untracked = "!f() { \ | |
git stash; \ | |
git stash -u; \ | |
git stash pop stash@{1}; \ | |
}; f" | |
tags = log --tags --simplify-by-decoration --pretty="format:%ci %d" | |
ign = ls-files -o -i --exclude-standard | |
pr = "!f() { git fetch -fu ${2:-upstream} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f" | |
pr-clean = "!git checkout master ; git for-each-ref refs/heads/pr/* --format=\"%(refname)\" | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done" | |
[push] | |
default = matching | |
[filter "media"] | |
clean = git-media-clean %f | |
smudge = git-media-smudge %f | |
[commit] | |
template = ~/.git-commit-template.txt | |
[core] | |
editor = vim | |
[fetch] | |
prune = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment