There's a couple of other good tidbits in there if you're still a git neophyte like myself.
There's a couple of other good tidbits in there if you're still a git neophyte like myself.
# git stash (all my changes are saved away, and I have a clean tree)
# Fix the bug
# git commit -a -m "bugfix"
# git stash pop (changes are back)
This is the type of stuff that make SVN people "get it".
Otherwise, I use a new topic branch instead of stashing. Branching takes so little effort.
git branch -m origin github
git remote rename origin github
Had branches on the mind and didn't catch it till just now and the edit window is closed.
For the most part you can tweak most of the configs via command-line: git branch, git remote, or git config. I switch between those and editing the .git/config directly depending on the scope of the changes.