This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
tutorials:git_quick_reference [2019/09/19 19:59] deryn.crockett |
tutorials:git_quick_reference [2020/01/03 18:29] (current) marcus.williams [Stash] |
||
---|---|---|---|
Line 52: | Line 52: | ||
[[https://stackoverflow.com/questions/1260748/how-do-i-remove-a-submodule|How to remove a submodule]] | [[https://stackoverflow.com/questions/1260748/how-do-i-remove-a-submodule|How to remove a submodule]] | ||
+ | |||
+ | ===== Checkout ===== | ||
+ | |||
+ | Reset file foo to HEAD. Stackoverflow [[https://stackoverflow.com/questions/215718/how-can-i-reset-or-revert-a-file-to-a-specific-revision|link1]] | ||
+ | <code> | ||
+ | git checkout -- foo | ||
+ | </code> | ||