Tag: git-checkout

57 votes
29 answers
2.4K views
How to find and restore a deleted file in a Git repository

Say I'm in a Git repository. I delete a file and commit that change. I continue working and make some mor

avatar
Hilario
0 1 0 9
asked 07 September, 2021
55 votes
30 answers
1.6K views
How can I reset or revert a file to a specific revision?

I have made some changes to a file which has been committed a few times as part of a group of files, but now w

avatar
Hallie
0 1 0 9
asked 07 September, 2021
57 votes
30 answers
1.1K views
How do I check out a remote Git branch?

Somebody pushed a branch called test with git push origin test to a shared repository. I can see the branch wi

avatar
Robt
0 1 0 9
asked 07 September, 2021
62 votes
30 answers
982 views