Created
February 18, 2015 08:55
-
-
Save selbekk/aa2ee544a5e6b28ccab3 to your computer and use it in GitHub Desktop.
My .gitconfig file
This file contains 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
[include] | |
path = ~/.gitconfig-user | |
# Include user specific information | |
[core] | |
editor = vim | |
excludesfile = /opt/boxen/config/git/gitignore | |
autocrlf = input | |
# Convert line endings to platform input (LF on *nix, CRLF on windows). | |
# In other words, don't use this on windows. Use 'true' instead. | |
# Use a .gitattributes file in projects to avoid problems with line endings | |
# from participants on disparate platforms. | |
[commit] | |
template = ~/.gitmessage | |
[push] | |
default = upstream | |
[merge] | |
tool = opendiff | |
log = true | |
# Include summaries of merged commits in merge commit messages. | |
[rerere] | |
enabled = true | |
# Re-use recorded resolutions of conflicts. | |
[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] | |
st = status -sb | |
ci = commit | |
br = branch | |
co = checkout | |
unfuck = checkout | |
df = diff | |
lg = log -p | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
yolo = push | |
pysj = push | |
fakemerge = merge --no-commit --no-ff | |
ac = commit -a | |
unstage = reset HEAD | |
branches = !git-branches | |
put = push origin HEAD | |
rpo = remote prune origin | |
cob = !sh -c 'git co -b "$0"' | |
cor = !sh -c 'git co -t "$0"' | |
rmbr = !sh -c 'git branch -D "$0" && git push origin ":$0"' | |
smerge = merge --squash | |
dt = !sh -c 'git tag -d "$0" && git push origin :refs/tags/$0' | |
release-tag = !sh -c 'TAG=$0-`date +"%Y%m%d%H%M%S"` && echo "Creating Tag: $TAG" && git tag $TAG -am \"$1\" && git push --tags origin master' | |
ig = update-index --assume-unchanged | |
rull = pull --rebase | |
unig = update-index --no-assume-unchanged | |
su = submodule update | |
[hub] | |
protocol = https | |
[credential] | |
helper = /opt/boxen/bin/boxen-git-credential | |
[user] | |
name = selbekk | |
email = kristofer.selbekk@bekk.no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment