Skip to content

Instantly share code, notes, and snippets.

@zxshinxz
Last active August 29, 2015 14:22
Show Gist options
  • Save zxshinxz/a1120e190e30884eedf1 to your computer and use it in GitHub Desktop.
Save zxshinxz/a1120e190e30884eedf1 to your computer and use it in GitHub Desktop.
apply new git ignore
// Making changes to .gitignore and make ignored files available locally
//change .gitignore and add commit everything before doing this
git rm -r --cached some-directory
git commit -m 'Remove the now ignored directory "some-directory"'
git push origin master
// After this normal workflow. Note ignored files are available locally.
git add .
git commit -m 'blar'
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment