Multiple Git repositories for each Eclipse project or one Git repository

后端 未结 5 683
半阙折子戏
半阙折子戏 2021-01-30 00:54

I am in the process of moving to Git from SVN. In SVN I had multiple eclipse projects in a single SVN repository that is convenient for browsing projects. I was going to move to

5条回答
  •  梦如初夏
    2021-01-30 01:23

    I use 1 repo per project.

    Some reasoning:

    • When you discover you messed up something after several commits, it's much easier to fix when it's just one project. Just think about, you did commits to two other projects and now you need to fix the commit you did on the 3rd project.

    • As Fedir said, your history and log is much cleaner. It only shows the commits for that project.

    • It works better with the development workflow I have. I have a master branch for production, develop branch for, well, development, and I create branches to implement features (you can read more about it here: http://blog.avirtualhome.com/development-workflow-using-git/)

    • When you work in a team, and so "share" the git repo, do the team members really need all the other projects as well?

    Just a few thoughts, but what it boils down to: Do what works for you.

提交回复
热议问题