Created
June 30, 2016 17:59
-
-
Save mir4ef/dfe0f8fa7e27633347c575510298e501 to your computer and use it in GitHub Desktop.
Remove a file/folder from git repo, but keep local
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
git rm --cached file-name.txt | |
git rm -r --cached folder-name | |
git commit -m "removed file-name and/or folder-name" | |
git push origin master or branch-name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment