Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove File from Repository without deleting local copy

How do I do this in Subclipse:

svn rm --keep-local file
like image 827
cyborg Avatar asked Nov 09 '11 08:11

cyborg


People also ask

How do I remove a file from my local git repository?

Simply view any file in your repository, click the trash can icon at the top, and commit the removal just like any other web-based edit. Then " git pull " on your local repo, and that will delete the file locally too.

Does git rm delete local file?

git rm will not remove a file from just your working directory. (There is no option to remove a file only from the working tree and yet keep it in the index; use /bin/rm if you want to do that.)

How do I Unversion a file in git?

The . git folder is hidden, so you have to go to Organize / Folder and Search Options, Display hidden Files option, under your main folder. It should unversion it.


1 Answers

This option is not exposed in Subclipse. So you have to stash the file somewhere and then delete it and commit it and put it back locally.

like image 166
Mark Phippard Avatar answered Dec 09 '22 10:12

Mark Phippard