you can use git stash to save temp  your changes.

git stash save my_changes
git checkout -b new_branch
git stash list
git apply xxx (xxx = the code you see in the stash list)

Alberto Leal
--
Sent from my iPhone


On 28/02/2010, at 22:20, Walter Lee Davis <[email protected]> wrote:

I made a bunch of changes, but forgot to create and switch to a branch before I did. Is there a way to leave the last commit as the last point in the master, then switch to the branch and commit all the changes that have piled up since the last master commit?

Thanks in advance,

Walter

--
You received this message because you are subscribed to the Google Groups "GitHub" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected] . For more options, visit this group at http://groups.google.com/group/github?hl=en .


--
You received this message because you are subscribed to the Google Groups 
"GitHub" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/github?hl=en.

Reply via email to