If you delete files directly from the file system instead of using the git command, then those files will still exist in git until you remove them from the git repository.

To remove the files from git, you can use the following command:

git rm '<file-name>'

This command removes the file from the file system and also removes it from the git repository.

After running this command, you should commit the changes using the following command:

git commit -m 'removed <file-name>'

This will commit the changes to the git repository and remove the file from it.

How to Remove Files from Git After Deleting Them Directly

原文地址: https://www.cveoy.top/t/topic/nCNL 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录