Skip to content

Instantly share code, notes, and snippets.

@yuanmai
Created May 17, 2012 07:32
Show Gist options
  • Save yuanmai/2717198 to your computer and use it in GitHub Desktop.
Save yuanmai/2717198 to your computer and use it in GitHub Desktop.
Handle local debug changes with git
[alias]
db = !git cherry-pick -n debug-only && git status
udb = !git revert -n debug-only && git status
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