Created
May 17, 2012 07:32
-
-
Save yuanmai/2717198 to your computer and use it in GitHub Desktop.
Handle local debug changes with git
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
[alias] | |
db = !git cherry-pick -n debug-only && git status | |
udb = !git revert -n debug-only && git status |
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
create a tag called debug-only, it contains all local changes. | |
git db # apply that patch | |
git add your_changes | |
git udb # undo that patch | |
git commit -m "without local config" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment