Skip to content

Instantly share code, notes, and snippets.

@filipemansano
Created July 29, 2020 02:07
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 filipemansano/68310f2336c91391da64eac473979feb to your computer and use it in GitHub Desktop.
Save filipemansano/68310f2336c91391da64eac473979feb to your computer and use it in GitHub Desktop.
Step 1: Commit all your pending changes in the repo which you want to fix and push that.
Step 2: Now you need to remove everything from the git index in order to refresh your git repository. This is safe. Use this command:
git rm -r --cached .
Step 3: Now you need to add everything back into the repo, which can be done using this command:
git add .
Step 4: Finally you need to commit these changes, using this command:
git commit -m "Gitignore issue fixed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment