个人常用的Git shell命令
- Commit
git commit -m "[descriptive message]"
- Stop tracking
git rm --cached <file(s)>
git rm -r --cached <dir>
- Discard latest changes
git checkout .
git commit -m "[descriptive message]"
git rm --cached <file(s)>
git rm -r --cached <dir>
git checkout .