Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I remove a file from Git within IntelliJ VCS?

VCS has an Add option (Git Add) but seems to lack Git Remove.

What's the idiomatic way to Git Remove with VCS?

like image 486
Jire Avatar asked Feb 01 '16 02:02

Jire


People also ask

How do I remove a file from my Git repository?

The easiest way to delete a file in your Git repository is to execute the “git rm” command and to specify the file to be deleted. Note that by using the “git rm” command, the file will also be deleted from the filesystem.

How do I delete a file in Intellij?

Select an item you want to delete. Select Refactor | Safe Delete from the main or context menu or press Alt+Delete .

How do you remove files from commit before push in Intellij?

In the Log view select the commit containing the changes you want to discard. In the Changed Files pane, right-click the file that you want to revert and select Revert Selected Changes from the context menu.


1 Answers

In the terminal, use git rm --cached -r .idea/. This will remove the files from the GIT index, but leave the files locally.

like image 163
Kick_the_BUCKET Avatar answered Nov 14 '22 02:11

Kick_the_BUCKET