Re: Tracking the untracked
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- May 6, 2009, 09:36 UTC
- Message-ID
- <alpine.DEB.1.00.0905061130340.14230@intel-tinevez-2-302>
- In-Reply-To
- <93c3eada0905051819l92dc7ey331d69f009cc9c8b@mail.gmail.com>
Hi,
On Wed, 6 May 2009, Geoff Russell wrote:
Show 9 quoted lines
> Bug or feature? I don't know. > > On the master branch I have some untracked files e.g., object modules, > executables. > > I create a branch B1 and add+commit the untracked files. > > When I switch back to the master (git checkout master), the untracked > files are no longer where I left them.
This is exactly what Git is supposed to do. You were on branch B1, which has the files tracked, and you do not have the files tracked in master, so when switching to master, they should be removed.
Probably you have to rethink what you are trying to do.
Ciao, Dscho