Skip to content

Instantly share code, notes, and snippets.

@lirenlin
Created July 1, 2013 20:57
Show Gist options
  • Save lirenlin/5904572 to your computer and use it in GitHub Desktop.
Save lirenlin/5904572 to your computer and use it in GitHub Desktop.
remove everything in the index and add new files
git rm -r --cached .
# change the .gitignore file
git add .
git commit -am ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment