Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
87 lines (74 sloc) 1.91 KB
[hub]
protocol = https
[alias]
# --------------–-------–--------–--------–-------–--–-----
# Faster commands
# --------------–-------–--------–--------–-------–--–-----
g = git
ad = add .
br = branch
c = checkout
cb = checkout -b
cm = commit -m
cam = commit -a -m
pl = pull
ps = push
psm = push origin master
psd = push origin dev
st = status
# --------------–-------–--------–--------–-------–--–-----
# More intuitive commands
# --------------–-------–--------–--------–-------–--–-----
# List tags
tags = tag -l
# List branches
branches = branch -a
# Reset (uncomitted) changes
abort = reset --hard HEAD
# Remove last commit
uncommit = reset HEAD~1
# Rewrite last commit message
recommit = commit --amend -m
# Show a full log
graph = log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
# Name/email of the author
whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
# Commit name
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
# Stashing include tracked files
stash = stash --include-untracked
# Cleanup merged branches
cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"
# Empty commit
empty-commit = commit --allow-empty -m
[core]
excludesfile = ~/.gitignore_global
editor = code-insiders -w
pager = diff-so-fancy | less --tabs=2 -RFX
[apply]
whitespace = fix
[color]
ui = auto
interactive = 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
[merge]
log = true
ff = only
[rebase]
autosquash = true
[push]
default = current
[include]
path = .gitlocal