I'm going to hold a Git study session on November 14th. This gist is just a personal memo.
git diff --cacheduse this everytime before commiting in order to avoid tiny careless mistakes.git diff --name-only | xargs grep 'word-you-want-to-search'grep "word-you-want-to-search" among changed files.git log -10 --graph | lessshow quick history.git stashand (git stash poporgit stash apply) you should use them to switch branches.