On 3 September 2013 23:44, maya melnick <maya778...@yahoo.com> wrote:
> but in my case when I switch back to branch master the changes I made in
> branch 'test' do not get reverted.... I look in the dir and the one file I
> added in branch 'test' is still there when I have switched to branch
> (I haven't commited, it's just a test branch, I don't want to commit....;-)
> make sense?
> (I haven't staged either.....)
Because you have not as yet instructed git to manage the new file, git does
not do anything with it when you change branches. You have not told git
which branch the new file belongs to, so it leaves it alone. Make sense?
To get the result you expect, you must commit the new file to your test branch.
Then, git will remove it when you checkout 'master', and restore it when you
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/groups/opt_out.