How to checkout a commit from github not being part of any branch? #120140
Unanswered
mfn
asked this question in
Repositories
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
In a private repository, I viewed a pull request at a certain commit. A co-worker force-pushed the whole branch.
I still have the link to the commit on github, it says:
I want to check out that commit, but I don't know how to access it.
I am not interested in a solution from the co-workers local clone to checkout the commit. I also do not have this commit locally.
?
I tried
git checkout origin/hash
or similar ideas, but that does not work.Beta Was this translation helpful? Give feedback.
All reactions