On 14 Sep 2015 18:57, "Konstantin Khomoutov" <flatw...@users.sourceforge.net>
> On Mon, 14 Sep 2015 09:45:26 -0700 (PDT)
> Najgit <christopher.naj...@gmail.com> wrote:
> > If (locally) in gitbash I
> > create a new branch e.g. 'dev'
> > then create a new file: eg touch style.css
> > then git add, git commit -m "..."
> > and then switch back to master and type ls
> > style.css will be listed there (in the master directory)
> > Is this correct?
> No. Are you sure you have really committed the addition of that file?
> Because the only two possibilities for that file to be in the work tree
> when you checkout the "master" branch are:
> * The file is also present in the tip commit of that branch;
> * The file is currently untracked.
The third possibility is that you did this on master:
$ git branch dev
$ git add style.css
$ git commit
$ git checkout master
In which case you actually committed style.css on master. Creating a branch
with git-branch doesn't set it as the current one; you have to explicitly
check it out.
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/d/optout.