Re: git checkout no longer warning about uncommitted/untracked files!
- From
René Scharfe <rene.scharfe@lsrfire.ath.cx>
- Date
- May 23, 2011, 20:37 UTC
- Message-ID
- <4DDAC57D.9020809@lsrfire.ath.cx>
- In-Reply-To
- <1306171797211-6395441.post@n2.nabble.com>
Am 23.05.2011 19:29, schrieb funeeldy:
Show 5 quoted lines
> I found some other posts that seem to indicate that this is the right place > to file bug reports for git. If this is wrong, please let me know the > proper method. > We are using git version 1.7.3. We just noticed that git checkout no longer > warns about uncommitted/untracked files and just deletes them!!!
I can't reproduce this behaviour based on this description alone:
$ git --version git version 1.7.3 $ uname -a Linux ubuntu 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux
$ mkdir /tmp/repo && cd /tmp/repo $ git init Initialized empty Git repository in /tmp/repo/.git/ $ git config -l color.ui=auto user.name=René Scharfe user.email=rene.scharfe@lsrfire.ath.cx core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true
$ echo 1 >a $ git add a $ git commit -m. [master (root-commit) b0e60d3] . 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 a
$ git branch x $ echo uncommitted >a $ echo untracked >b
$ git checkout x M a Switched to branch 'x'
$ cat a uncommitted $ cat b untracked
Can you reconstruct what your colleague did, perhaps using his or her shell's command history file (e.g. ~/.bash_history)?