whitespace = fix
[alias]
co = checkout
- ci = commit
+ ci = commit -v
st = status
br = branch
+ cl = clone --recursive
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
sts = status -s
bra = branch -a
brd = branch -d
-
+ df = diff
+ dc = diff --cached
+ who = shortlog -s --
+ ed = config --global -e
+ ls = log --oneline
+ ca = commit -va
+ caa = commit -va --amend -C HEAD
+ uncommit = reset --soft HEAD~1
+ rmcommit = reset --hard HEAD~1
+ unstage = reset HEAD --
+ last = log -1 HEAD
# View abbreviated SHA, description, and history graphs
lg = !"git lg1"
lg1 = !"git lg1-specific --all"
# Pull in remote changes for the current repository and all its submodules
p = !"git pull; git submodule foreach git pull origin master"
# Clone a repository including all submodules
- c = clone --recursive
- # Commit all changes
- ca = !git add -A && git commit -av
# Switch to a branch, creating it if necessary
go = "!f() { git checkout -b \"$1\" 2> /dev/null || git checkout \"$1\"; }; f"
# Show verbose output about tags, branches or remotes
branches = branch -a
remotes = remote -v
# Amend the currently staged files to the latest commit
- amend = commit --amend --reuse-message=HEAD
# Credit an author on the latest commit
credit = "!f() { git commit --amend --author \"$1 <$2>\" -C HEAD; }; f"
# Interactive rebase with the given number of latest commits
ctags = "!sh -c '[ -f .git/hooks/ctags ] || git init; .git/hooks/ctags' git-ctags"
gtags = "!sh -c '[ -f .git/hooks/gtags ] || git init; .git/hooks/gtags' git-gtags"
cscope = "!sh -c '[ -f .git/hooks/cscope ] || git init; .git/hooks/cscope' git-cscope"
-
-[include]
+ k = !gitk
+ [include]
# Local/private config goes in the include
path = ~/.gitconfig_local