Created
June 3, 2024 18:55
-
-
Save Korveld/d2cd953756ae2f6e4ac74dead60a086c to your computer and use it in GitHub Desktop.
Remove a folder from git tracking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment