📜  git stop tracking directory - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:50.527000             🧑  作者: Mango

代码示例2
Step 1. Add the folder path to your repo's root .gitignore file.
path_to_your_folder/

    Step 2. Remove the folder from your local git tracking, but keep it on your disk.
git rm -r --cached path_to_your_folder/

    Step 3. Push your changes to your git repo.
    
// Taken from brilliant answer on 
// https://stackoverflow.com/questions/24290358/remove-a-folder-from-git-tracking