Skip to content

Instantly share code, notes, and snippets.

@melvitax
Last active July 22, 2016 20:35
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 melvitax/3b1a2374e2cbb28d2cabd5ecd059d6e1 to your computer and use it in GitHub Desktop.
Save melvitax/3b1a2374e2cbb28d2cabd5ecd059d6e1 to your computer and use it in GitHub Desktop.
// Master list at: https://github.com/github/gitignore/tree/master/Global
// If you added a .gitignore file after doing your Xcode commit, git will continue tracking files even if they are listed in .gitignore.
// To fix this, move all of the files in the repository somewhere else on the filesystem (except .gitignore and .git), then run:
git add --all
git commit -m "Remove all files"
// Then add your files back in and run the following:
git add --all
git commit -m "Re-add files"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment