Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: Git screwup with reset

From: Sverre Rabbelier <hidden>
Date: 2016-06-15 22:46:47

Heya,

On Mon, May 18, 2009 at 16:58, jake varghese [off-list ref] wrote:
 Anyone know of a way to get this stuff back.
Make a backup copy of that .git directory, so that whatever you do you
won't lose that work ;). Also, the reason you can't merge or rebase
that hash is because it's the hash of a tree or a blob, not a commit.
You can use git commit-tree [0] to create a commit from your lost
tree, but that works only if you have a tree (for just a blob you can
use git cat-file [1])

[0] http://www.kernel.org/pub/software/scm/git/docs/git-commit-tree.html
[1] http://kernel.org/pub/software/scm/git/docs/git-cat-file.html

-- 
Cheers,

Sverre Rabbelier
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help