I only has one git branch (master), also it is a private repository (only used by myself). How can I easily rollback/redo my working dictionary files like snapshot management?
For example:
- I commit 1st time, with only 1.txt in the dictionary
- I commit 2nd time, to add 2.txt in the dictionary
- I commit 3rd time, to add 3.txt in the dictionary
Now the question is:
- what command I should issue for git to recover my working dictionary only include 1.txt file?
- After above step 1, what git command I should issue again to restore my working dictionary, let it has 3 files (1.txt, 2.txt, 3.txt) again?
Basically I want to treat it as snapshot management for working dictionary to easily switch between different commit. Is it doable with git?