Q:

get back some commits git

git revert --no-commit 0766c053..HEAD
git commit
2
git revert {commit_id}'
1
# This will detach your HEAD, that is, leave you with no branch checked out:
git checkout 0d1d7fc32
-2

New to Communities?

Join the community