IDEA cancels git's version control of the project

Preface

When I created a new project a few days ago, I accidentally selected a git repository, which resulted in this test project being managed by git.

Insert image description here

Solution

1 Right-click the project and select Open Resource Directory

Insert image description here

2 Delete .git files

Delete the .git file in the directory

Insert image description here

3 Delete git management in idea

After deleting the .git file, enter idea. There will be a prompt like this in the lower right corner. Click configure.

Insert image description here

Or find the location in settings

4 Select the item, click delete, select apply, ok

Insert image description here

Check the effect

After completing the above operations, check again and see that the project is no longer managed by git.

Insert image description here

Supongo que te gusta

Origin blog.csdn.net/weixin_46713508/article/details/134248972
Recomendado
Clasificación