简体   繁体   中英

Where to put Git repository in Eclipse?

If I try to put repository inside project folder

在此输入图像描述

it warns it is not recommended to put git repository inside workspace.

If I try to create intermediate folder

在此输入图像描述

it swears "overlaps the location of another project" at the stage of creating new project.

And if I try to create project inside workspace and repository outside, it moves the project also outside of workspace

在此输入图像描述

So, the only way to use Git under Eclipse it totally abandon workspace?

If you choose the last solution you present, to deal with git and Eclipse, you will not abandon workspace, all your code will remain into your Project Workspace but you will get an additionnal folder somewhere else containing your same code, versioned, a local git repository. By choosing this solution, you can only version some parts of your project and you also avoid some possible conflicts that can arise when versioning your workspace project folder. You can also have a cleaner view of your code if you want it without eclipse metadata and do some complex git tasks on the commandline in this separate folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM