計算機科学のブログ

ほしい物リスト

Git - Undoing: Fixing Your Mistakes - diff, restore, flag

Head First Git: A Learner’s Guide to Understanding Git from the Inside OutRaju Gandhi(著)、 O’Reilly Mediaの Chapter 4.(Undoing: Fixing Your Mistakes)、WHO DOES WHAT?(293/715)の解答を求めてみる。

git statusDisplaysthe state of the working directory and the index
git diffCompares the index and the working directory
git restore –stagedRecovers files from the object database into the index
git diff –cachedCompares the object database with the index
git branchDisplays the branches in your repository
git restoreRecovers files from the index into the working directory