Alex Rivera | Logout

Remove file from the repository but keep it locally

Asked 2010-08-12T16:15:34.997
485

I have a folder which I'd like to remove in my remote repository. I'd like to delete it, but keep the folder in my computer

Edit
Report

1 Answer

5

I would just:

  • Move the folder out of your working tree
  • git rm the folder, commit the change
  • Add to .gitignore (or .git/info/excludes), commit the change
  • Move the folder back
answered 2010-08-12T16:35:52.780

Your Answer