Skip to content

Instantly share code, notes, and snippets.

@austinsamsel
Last active December 3, 2016 15:15
Show Gist options
  • Save austinsamsel/e52d3bea2f6e9c19a04dc01eeeed74fb to your computer and use it in GitHub Desktop.
Save austinsamsel/e52d3bea2f6e9c19a04dc01eeeed74fb to your computer and use it in GitHub Desktop.
remove files from repository that are listed in gitignore
git rm -r --cached .
git add .
git commit -m "Removing all files in .gitignore"
# OR, in one line:
git rm -r --cached . && git add . && git commit -m "Removing all files in .gitignore"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment