Skip to content

Instantly share code, notes, and snippets.

@gringoh
Last active July 1, 2022 12:28
Show Gist options
  • Save gringoh/8f95a8366fdcc9c0265c3332ee40abe5 to your computer and use it in GitHub Desktop.
Save gringoh/8f95a8366fdcc9c0265c3332ee40abe5 to your computer and use it in GitHub Desktop.
[Git: Remove files after updating .gitignore] #git

Git: Remove files after updating .gitignore

Here, we're removing all files that are currently being ignored in .gitignore:

git rm -r --cached .
git add .
git commit -m "Removes all .gitignore files and folders"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment