T
T
T4-1002014-08-18 19:22:43
git
T4-100, 2014-08-18 19:22:43

How to return to a branch in git via .git/objects?

I find the necessary commit in objects

git checkout 3d6c05a21d334b1ca73a9fd63995d622e0db7f

I get
error: pathspec '3d6c05a21d334b1ca73a9fd63995d622e0db7f' did not match any file(s) known to git.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2014-08-18
@jcmvbkbc

How to revert to a branch in git

If you need to rollback a branch to a given commit
git reset --hard <id коммита>

S
Sergey Krasnodemsky, 2014-08-18
@Prognosticator

try
and after checkout

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question