Answers for "gitignore all files and folders in only one folder"

1

how to ignore folder in gitignore duplicate

# Step 1) First stop git from tracking the <folder> 
### Example git rm -r --cached dist ###
git rm -r --cached <folder> 

# Step 2) Then update .gitignore file
dist/
node_modules/
*.log
.env
*.zip
Posted by: Guest on November-18-2020
0

gitignore all files and folders in only one folder

*
*/
!.gitignore
Posted by: Guest on December-05-2020

Code answers related to "gitignore all files and folders in only one folder"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language