Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove git repository from Eclipse

Tags:

git

eclipse

I added a git repository to my project and then I hit Team > Disconnect. How do I remove this repository completely? I'm trying to set up a new git repository on my project, but I keep getting an error message.

like image 437
Kody R. Avatar asked Feb 23 '16 22:02

Kody R.


People also ask

Where is Git repository in Eclipse?

Step 6: Then again open Eclipse IDE. Then go to Window, then Show View & then others. Step 7: The expand Git folder, click on Git Repositories & Open it.

How do I unlink a remote Git repository?

Use the git remote rm command to remove a remote URL from your repository. The git remote rm command takes one argument: A remote name, for example, destination.


1 Answers

If you just want to remove the repository from the Eclipse but not want to delete the data from your computer, follow these steps :

  1. First switch to Git perspective (Window - > Open Perspective -> Other -> Search for Git)

  2. In the Git Repositories section, right click your repository and select Remove Repository from View. This will prompt you to confirm if you want to remove the projects that are imported in Eclipse from this repository. Click Yes and you are done.

like image 129
mantri Avatar answered Sep 18 '22 01:09

mantri