Is it possible to checkout a single file in a different commit? #4794
Answered
by
stefanhaller
AlvesJorge
asked this question in
Q&A
-
the git equivalent is: git checkout branch_name -- path/to/file.txt Thank you 🙏 |
Beta Was this translation helpful? Give feedback.
Answered by
stefanhaller
Aug 5, 2025
Replies: 1 comment 2 replies
-
Yes: select the commit, press enter to see its files, select the file, and press If it's in a different branch: select the branch, press enter to see its commits, then go from there. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
AlvesJorge
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes: select the commit, press enter to see its files, select the file, and press
c
to check it out.If it's in a different branch: select the branch, press enter to see its commits, then go from there.