git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Re: Tracking remote branches

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Sep 14, 2009, 19:19 UTC
Message-ID
<20090914191957.GB64280@macbook.lan>
In-Reply-To
<a4c8a6d00909141130o628a069fu4c489b25f95f543d@mail.gmail.com>
On Mon, Sep 14, 2009 at 03:30:10PM -0300, Thiago Farina wrote:
Show 19 quoted lines
> On Mon, Sep 14, 2009 at 2:01 AM, Nicolas Sebrecht <nicolas.s.dev@gmx.fr> wrote:
> > The 13/09/09, Thiago Farina wrote:
> > $ 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?
>
> Why these files has this status? Is supposed to me to do something
> about that when this situation occurs?

I just checked and this is because you probably made a build on the master branch which creates these files. They are untracked but ignored through the .gitignore file in the master branch.

Now the situation is that the .gitignore on the current 'maint' branch does not have these files ignored because they are quite new.

In this situation you can do a
  git clean -f

which gets rid of all untracked but not ignored files (all files that git status shows as new) or

  make clean
while you are still on the master branch.
cheers Heiko
Previous: Thiago Farina
Message 4 of 4 in “Tracking remote branches”
  1. Thiago FarinaSep 14, 2009
  2. Nicolas SebrechtSep 14, 2009
  3. Thiago FarinaSep 14, 2009
  4. Heiko VoigtSep 14, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.