Last active
February 27, 2023 09:44
-
-
Save brettz9/8d8b6315f7d8f90edec0 to your computer and use it in GitHub Desktop.
Gitconfig which adds tools for Git GUI (Rebase, Revert, Stash, Tagging/Describe, (Arbitrary) command/git command, npm view, npm run, Git config, open file (and open this gist); Status for the fun of it)
This file contains hidden or 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
[user] | |
name = Brett Zamir | |
email = [email protected] | |
[gui] | |
[gui] | |
encoding = utf-8 | |
recentrepo = C:/wamp/www/_servers/me-pedia.org/me-pedia.org/extensions/intersection | |
recentrepo = C:/wamp/www/json-schema-spec | |
recentrepo = C:/wamp/www/file-type-icons | |
recentrepo = C:/wamp/www/symbols-tree-view | |
recentrepo = C:/wamp/www/[email protected]:brettz9/base16-tomorrow-dark-theme.git | |
recentrepo = C:/wamp/www/base16-tomorrow-dark-theme | |
recentrepo = C:/wamp/www/idb-batch | |
recentrepo = C:/wamp/www/sarissas-clone | |
recentrepo = C:/wamp/www/idb-factory | |
recentrepo = C:/wamp/www/idb-request | |
[guitool "Stash"] | |
cmd = git stash | |
[guitool "Stash/show"] | |
cmd = git stash show -p | |
[guitool "Stash/list"] | |
cmd = git stash list | |
[guitool "Stash/pop"] | |
cmd = git stash pop | |
[guitool "Stash/drop"] | |
cmd = git stash drop | |
confirm = yes | |
[guitool "Rebase onto... (non-interactive)"] | |
cmd = git rebase $REVISION | |
revprompt = yes | |
[guitool "Rebase/Current branch"] | |
cmd = git rebase -i $(git merge-base $CUR_BRANCH master) | |
[guitool "Rebase/Interactive"] | |
cmd = git rebase -i $REVISION | |
revprompt = Revision | |
[guitool "Rebase/Interactive number"] | |
cmd = git rebase -i HEAD~$ARGS | |
argprompt = Number | |
[guitool "Rebase/Continue"] | |
cmd = git rebase --continue | |
[guitool "Rebase/Skip commit"] | |
cmd = git rebase --skip | |
confirm = yes | |
[guitool "Rebase/Abort"] | |
cmd = git rebase --abort | |
[guitool "Pull with Rebase"] | |
cmd = git pull --rebase | |
[guitool "Status"] | |
cmd = git status | |
[guitool "Revert/Revision"] | |
cmd = git revert $REVISION | |
revprompt = Revision | |
[guitool "Revert/Latest local"] | |
cmd = git revert $(git rev-parse HEAD) | |
[guitool "Revert/Latest remote"] | |
cmd = git revert $(git rev-parse origin/master) | |
[sequence] | |
editor = 'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin | |
[core] | |
editor = 'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin | |
[guitool "Tag - List all"] | |
cmd = git tag | |
[guitool "Tag - List pattern"] | |
cmd = git tag -l \"$ARGS\" | |
argprompt = yes | |
[guitool "Tag - Show"] | |
cmd = git show $ARGS | |
argprompt = yes | |
[guitool "Tag - Latest annotated tag"] | |
cmd = git describe | |
[guitool "Tag - Latest tag"] | |
cmd = git describe --tags | |
[guitool "Run git command"] | |
cmd = git $ARGS | |
argprompt = yes | |
[guitool "Run command"] | |
cmd = $ARGS | |
argprompt = yes | |
[guitool "npm view"] | |
cmd = npm view | |
[guitool "npm view scripts"] | |
cmd = npm view . scripts | |
[guitool "npm run"] | |
cmd = npm run $ARGS | |
argprompt = yes | |
[guitool "Open git-config help"] | |
cmd = "start https://git-scm.com/docs/git-config#_variables" | |
noconsole = yes | |
[guitool "Open .gitconfig"] | |
cmd = "start %userprofile%/.gitconfig" | |
noconsole = yes | |
[guitool "Open file"] | |
cmd = start $FILENAME | |
noconsole = yes | |
needsfile = yes | |
[guitool "Open Gist to edit .gitconfig copy"] | |
cmd = start https://gist.github.com/brettz9/8d8b6315f7d8f90edec0/edit | |
noconsole = yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment