# rm all files
git rm -r --cached .
# add all files as per new .gitignore
git add .
# now, commit for new .gitignore to apply
git commit -m ".gitignore is now working"
Created
February 22, 2022 02:42
-
-
Save ValeriiVasyliev/2f867cb0ce4a516ec8c380f0f51a1371 to your computer and use it in GitHub Desktop.
Resync git repo with new .gitignore file
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment