Saturday, February 4, 2012

Removing a directory in git

Somehow, one of my directories in git repo doesnt get uploaded. I couldn't figure out the reason so tried to delete it but it didnt allow me to do so.

Then I found the solution is:
Backup the contents of the folder (without .git files)

git reset FOLDERNAME
git commit -a

Restore backup.

No comments: