Skip to content

Instantly share code, notes, and snippets.

@licensed
Created April 15, 2021 17:53
Show Gist options
  • Save licensed/70791c192ff297bf67d634b818dd188d to your computer and use it in GitHub Desktop.
Save licensed/70791c192ff297bf67d634b818dd188d to your computer and use it in GitHub Desktop.
Untrack Files
- Commit all your changes, including .gitignore
- git rm -r --cached .
- git add .
- git commit -m ".gitignore fix"
Source: https://www.codeblocq.com/2016/01/Untrack-files-already-added-to-git-repository-based-on-gitignore/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment