Last active
August 29, 2015 14:01
-
-
Save jgambill/bbf4bfe8e3e01d2bffa4 to your computer and use it in GitHub Desktop.
remove a file from the repo without deleting it from the local file system #git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add the file to .gitignore, then... | |
git rm --cached filename | |
git commit -am 'removed filename' | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment