Skip to content

Instantly share code, notes, and snippets.

@ayanyev
Created April 14, 2020 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayanyev/de77f9fc5cc426e9f9a9d7facb28eecb to your computer and use it in GitHub Desktop.
Save ayanyev/de77f9fc5cc426e9f9a9d7facb28eecb to your computer and use it in GitHub Desktop.
# Resync git repo with new .gitignore file
# 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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment