Created
November 11, 2013 09:47
-
-
Save eliza-abraham/7410669 to your computer and use it in GitHub Desktop.
Removing ignored file from the repository
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 -r --cached some-directory | |
$git commit -m 'Remove the now ignored directory "some-directory"' | |
$git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The above works fine for a single directory or file. But when you have committed a lot of files this could become handier:
Run this command to see first which files will be removed from repository (untracked):