且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么不把git pull带回我删除的目录?

更新时间:2023-11-05 20:40:10

git pull just merges the fetched commits in your working directory and will not restore your deleted directory ( but might warn you about conflicts.)

If you have deleted the folders in your working directory, you have to do:

git checkout -- test

to get it back.

Or you can do git reset --hard to completely bring your working directory to HEAD state.