Created
March 1, 2017 15:44
-
-
Save kos9kus/339cd5e8e80d05c571725240aaf43ddf to your computer and use it in GitHub Desktop.
Git repository config convenience alias
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
[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