Created
October 31, 2011 20:10
-
-
Save fajrif/1328735 to your computer and use it in GitHub Desktop.
git rm remote repo
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
# remove file from stage | |
git rm --cached --ignore-unmatch <filename> | |
# to remove the file from the entire repo history | |
git filter-branch --index-filter 'git rm --cached --ignore-unmatch <filename>' HEAD | |
# to force update to remote repo, so the remote repo have the same history | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment