Reputation: 2802
I have a repo, being at master. I do git checkout -b new_branch
and change, add and commit some files to new_branch
. Doing git checkout master
keep the files state as they were in new_branch
, so I have to do a git checkout -- .
on master
to get all files to master
state.
If I now change back and forth between the branches everything is updated like I expect them to. What am I doing wrong?
EDIT: This seems to be a bug with Atom, the text editor I am using. See this issue
Upvotes: 1
Views: 374
Reputation: 265928
This is not how Git behaves, but rather a bug in Atom, which does not update the file buffers in the editor.
The files are properly updated in the working tree by Git.
Upvotes: 1