Thread (1 message) 1 message, 1 author, 2016-06-15

Re: untracked file deleted from the master branch, when checked out to it from a local branch

From: Sergei Organov <hidden>
Date: 2016-06-15 23:01:16

Arup Rakshit [off-list ref] writes:


[...]
Now you can see, that I have created, a new file called *file.txt*, in the 
*master branch*.
And here is your basic misunderstanding. You've created file.txt indeed,
but not in the *master branch* (or any branch). You've created it in the
working directory. Only after you add/commit it, will it be "created" in
the branch that is checked out at this time. Until then, git won't touch
the file when you switch between branches.

-- Sergey.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help