Git - Undoing: Fixing Your Mistakes - diff, restore, flag
Head First Git: A Learner’s Guide to Understanding Git from the Inside Out、 Raju Gandhi(著)、 O’Reilly Mediaの Chapter 4.(Undoing: Fixing Your Mistakes)、WHO DOES WHAT?(293/715)の解答を求めてみる。
git status | Displaysthe state of the working directory and the index |
git diff | Compares the index and the working directory |
git restore –staged | Recovers files from the object database into the index |
git diff –cached | Compares the object database with the index |
git branch | Displays the branches in your repository |
git restore | Recovers files from the index into the working directory |