I have a bunch of changes in a branch that I didn't commit yet. They ended up getting more experimental then I thought they would and I would like to keep the current branch how it is and put them in a new branch. How can i do this?
Asked
Active
Viewed 110 times
1
-
The duplicate should take care of you. The important thing to note here is that the first sentence of your question has led you astray. Branches point to commits, so anything uncommitted is not in a branch. Your changes are only in the work tree, and you can freely switch to another branch at the same commit (so that Git doesn't need to check out different versions of files in the work tree) without affecting those changes. – Cascabel Jan 13 '12 at 19:35
-
Thanks jefromi, makes sense now. – fancy Jan 13 '12 at 19:35