git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fatal: ambiguous argument 'HEAD^': unknown revision or path not in the working tree.
@ 2010-10-28 13:09 Todd Wells
  2010-10-28 13:41 ` SZEDER Gábor
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Todd Wells @ 2010-10-28 13:09 UTC (permalink / raw)
  To: git

I was using GitX to prepare a commit. Something happened -- I don't 
know what --  and suddenly my branch only had a single commit 
in it that appears to contain all  the files in my tree. So I went to the 
command line and did this:

$ git reset --soft HEAD^ 
fatal: ambiguous argument 'HEAD^': unknown revision or path not 
in the working tree.

When I do 'git log' in this branch, there's only one commit. Now, I 
had many commits in this branch a few minutes ago. I really, 
really, don't want to lose this.

What steps should I take to attempt to recover?

^ permalink raw reply	[flat|nested] 15+ messages in thread
* fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
@ 2007-06-08 10:08 Thomas Glanzmann
  2007-06-08 10:15 ` Junio C Hamano
  0 siblings, 1 reply; 15+ messages in thread
From: Thomas Glanzmann @ 2007-06-08 10:08 UTC (permalink / raw)
  To: GIT

Hello,

        (s017241) [/usr/src/linux-2.6] git checkout v2.6.20
        warning: You appear to be on a branch yet to be born.
        warning: Forcing checkout of v2.6.20.
        fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
        Use '--' to separate paths from revisions
        Cannot detach HEAD

(s017241) [/usr/src/linux-2.6] git version
git version 1.5.2.1

what is going wrong here?

        Thomas

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-09-09 16:25 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-28 13:09 fatal: ambiguous argument 'HEAD^': unknown revision or path not in the working tree Todd Wells
2010-10-28 13:41 ` SZEDER Gábor
2010-10-28 13:42 ` Mathias Lafeldt
2010-10-28 13:42 ` Santi Béjar
     [not found]   ` <AANLkTi=QODz+Gf9hwrdu6b900CzuO-BBnF2zmLWOGFpy@mail.gmail.com>
2010-10-28 14:01     ` Santi Béjar
2015-09-09  8:34 ` davilda_
2015-09-09  9:20   ` Jeff King
2015-09-09 16:24     ` Junio C Hamano
  -- strict thread matches above, loose matches on Subject: below --
2007-06-08 10:08 fatal: ambiguous argument 'HEAD': " Thomas Glanzmann
2007-06-08 10:15 ` Junio C Hamano
2007-06-08 10:21   ` Thomas Glanzmann
2007-06-08 10:33     ` Junio C Hamano
2007-06-08 10:38       ` Thomas Glanzmann
2007-06-08 10:27   ` Junio C Hamano
2007-06-10  8:54     ` carbonated beverage

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).