rm test.c
git checkout test.c 恢复test.c
git rm test.c
git restore --staged test.c
git restore test.c 或 git checkout test.c 恢复test.c
标签:restore,git,--,操作,test,rm,checkout From: https://www.cnblogs.com/chino-ll/p/17210161.html
rm test.c
git checkout test.c 恢复test.c
git rm test.c
git restore --staged test.c
git restore test.c 或 git checkout test.c 恢复test.c