Git help

Soldato
Joined
1 Mar 2003
Posts
5,508
Location
Cotham, Bristol
Git is quite new to me but I'm slowly getting used to it. So let me describe the scenario that's confusing me now

- I have a branch called A, I need to create a fix based on A so I create a new branch called B and check it out.
- I modify some files whilst in B and then switch back to A
- At this point I do a git status and see unstaged changes to files I modified in branch B
- Ok switch back to B stage changes then switch back to A
- The changes are also staged in A

I'm confused?
 
Switch back to branch B and commit the staged files. When you then switch to branch A everything should then be as you expect it to be.

** If you are using the Git Gui then make sure to press F5 to refresh the display



If you're struggling to grasp some of the Git concepts then checkout this video:
http://vimeo.com/14629850
 
Last edited:
Switch back to branch B and commit the staged files. When you then switch to branch A everything should then be as you expect it to be.

** If you are using the Git Gui then make sure to press F5 to refresh the display

Thanks I literally just came back here to say I realised the error of my ways! :o
 
Back
Top Bottom