Re: Git branches - confusing behavior
- From
- Dima Kagan <dima.kagan@gmail.com>
- Date
- May 11, 2008, 12:33 UTC
- Message-ID
- <4826E791.7030407@gmail.com>
- In-Reply-To
- <m31w495apd.fsf@localhost.localdomain>
Show 7 quoted lines
>> Basically I see that the same file I edited on the 'test_branch' >> branch appears to be modified on the 'master' branch as well. This >> behavior is unwanted, of course. >> >> Can someone please tell me, what am doing wrong? Or is this git's >> normal behavior? >
I just realized that this behavior is even more confusing. If I commit the file on 'test_branch' and only then 'git checkout master' the changes are not visible on 'master' until I merge. So why should 'master' be affected by uncommitted changes on some branch???