Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git, deleting repository

Tags:

git

I somewhat screwd up the file system of my remote node. I am doing a project and the remote repo was initialized by my instructor. I cloned it and then pushed the updates from my home directory.

I now want to delete the repo which I cloned in the remote server. I want to start it over.

How do I delete the repository which was cloned before?

like image 696
newbie Avatar asked Feb 08 '12 16:02

newbie


People also ask

Can I delete a repository in Git?

Under your repository name, click Settings. Under Danger Zone, click Delete this repository. Read the warnings. To verify that you're deleting the correct repository, type the name of the repository you want to delete.

How do I remove a Git repository?

If you want to disconnect your app from the Git repository, click Settings and hit the delete icon next to the remote URL. It will take you to the disconnection window, ensuring that you want to delete the connection.

Which command is used to delete repository in Git?

git rm is used to remove a file from a Git repository. It is a convenience method that combines the effect of the default shell rm command with git add .

What happens if you delete .Git folder?

Deleting the . git folder does not delete the other files in that folder which is part of the git repository. However, the folder will no longer be under versioning control.


1 Answers

A repository is just a directory with working copy (though it is optional) and .git, so deleting the directory deletes the repository. To delete a remote repository you need to have access to the remote filesystem.

like image 141
wRAR Avatar answered Oct 09 '22 19:10

wRAR