Why doesn’t git pull bring back directories that I’ve deleted?

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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)