onlinecode

How to undo a Git init

How to undo a Git init

In this post we will give you information about How to undo a Git init. Hear we will give you detail about How to undo a Git initAnd how to use it also give you demo for it if it is necessary.

we will learn how to remove a git repository which is created by using the git init command.

Removing a Git repository

We can remove a git repository by deleting the .git folder because git keeps all information inside that folder.

Here is an example:

  1. In your terminal navigate to git repository you need to remove.

  2. Now, run the following command to delete the .git folder.

rm -rf .git

Hope this code and post will helped you for implement How to undo a Git init. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

Exit mobile version