Skip to content

Instantly share code, notes, and snippets.

@kos9kus
Created March 1, 2017 15:44
Show Gist options
  • Save kos9kus/339cd5e8e80d05c571725240aaf43ddf to your computer and use it in GitHub Desktop.
Save kos9kus/339cd5e8e80d05c571725240aaf43ddf to your computer and use it in GitHub Desktop.
Git repository config convenience alias
[alias]
kksubmupdate = submodule update
kkcommitlastmsg = commit -a -c ORIG_HEAD
kkstatus = "!sh -c 'git fetch && git status' "
kkpull = "!sh -c 'git pull --rebase && git kksubmupdate' "
kkcommitall = commit -a
kkrebaseinteractive = rebase -i
kklogahead = "!sh -c 'var_branch_name=$(git name-rev --name-only HEAD) && git log origin/$var_branch_name..HEAD' "
kklogbehind = "!sh -c 'var_branch_name=$(git name-rev --name-only HEAD) && git log HEAD..origin/$var_branch_name' "
kkmovetodev = checkout "develop1"
kkmergenoff = merge --no-ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment