Re: fatal: unable to create '.git/index': File exists
- From
- Len Brown <lenb@kernel.org>
- Date
- Jan 6, 2007, 03:01 UTC
- Message-ID
- <200701052201.39727.lenb@kernel.org>
- In-Reply-To
- <200701051150.09968.lenb@kernel.org>
On Friday 05 January 2007 11:50, Len Brown wrote:
Show 15 quoted lines
> I kicked off a pull. > Realized I was on the wrong branch > and immediately did a ^C > > Now I can't change branches: > > # git checkout release > fatal: unable to create '.git/index': File exists > fatal: unable to create '.git/index': File exists > > git reset --hard > does not help. > > curiously, moving .git/index to /tmp and repeating > results in the same error.
rm .git/index.lock seemed to do the trick. Hopefully nothing is toasted by this...