Re: Core dump on commit
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Aug 15, 2011, 16:03 UTC
- Message-ID
- <CACsJy8BBvgJauL4a9MxWAXGN-_qiAKprt15hizyBp0O9knwKrg@mail.gmail.com>
- In-Reply-To
- <loom.20110815T172423-956@post.gmane.org>
On Mon, Aug 15, 2011 at 10:48 PM, Marko Vukovic <amasniko@yahoo.com> wrote:
> Pardon my ignorance, but what does "git reset" do? I have got some uncommitted > changes in the staging area. What will happen to them?
I should have written "git reset --soft 1b9a976133", which resets HEAD ref back to (assuming) good commit. See [1] for more information. I think for some reason, eGit put a tag object to HEAD, while it should be a commit object. By resetting it back to the commit that the tag points to, you may be able to commit again.
No history would be lost. Also if you use --soft, index should be untouched. As always, back up your repository (copy the whole directory, including .git) before doing anything.
[1] http://www.kernel.org/pub/software/scm/git/docs/git-reset.html
-- Duy