Git dont sync files untill committed even if checkout different branch

Posted by DertWaiter on Programmers See other posts from Programmers or by DertWaiter
Published on 2012-06-22T23:40:05Z Indexed on 2012/06/23 3:23 UTC
Read the original article Hit count: 164

Filed under:
|
|

Ok i have git 1.7.11.1 on windows and i have local test reposotory with 2 branches one is master with index.php help.php then i create another branch called slave :)

I run from git bash rm help.php and it dissapears from the folder, but i dont stage anything. I switch to checkout master branch and it supposed to restore file help.php because its not modified in master branch isnt it?

And it does not do it. When i back to slave branch and commit and then switch to checkout master then help.php appears. is that the way it supposed to be why?

© Programmers or respective owner

Related posts about git

Related posts about branching