Re: Tracking remote branches
- From
Thiago Farina <tfransosi@gmail.com>
- Date
- Sep 14, 2009, 18:30 UTC
- Message-ID
- <a4c8a6d00909141130o628a069fu4c489b25f95f543d@mail.gmail.com>
- In-Reply-To
- <20090914050145.GA12985@vidovic>
On Mon, Sep 14, 2009 at 2:01 AM, Nicolas Sebrecht <nicolas.s.dev@gmx.fr> wrote:
Show 31 quoted lines
> The 13/09/09, Thiago Farina wrote: >> Hi, >> >> I know that I could do simply, instead of above: >> $ git checkout --track -b maint origin/maint > > Or > $ git checkout -t origin/maint > >> OK, now I switched to maint branch. And then I did: >> $ git status >> >> # On branch maint >> # Changes to be committed >> # (use "git reset HEAD <file>..." to unstage) >> # >> # new file: git-remote-curl >> # new file: git-replace >> # >> >> What happened here? What I have to do now? > > You've probably added these files to the index, mistakenly. If you don't > have uncommited changes, try : > > git checkout -f master > git branch -D maint > git checkout -t origin/maint > git status > > The files should now be shown as "Untracked files".
Yeah, now the files has this status. But I don't have anything related with these files, I didn't add these files. Why these files has this status? Is supposed to me to do something about that when this situation occurs?