Git submodules using relative urls

℡╲_俬逩灬. 提交于 2019-12-04 05:11:34

Actually relative urls works fine with msysgit already. I've upgraded it from 1.7.7.1 to 1.7.8, and crashes are gone. Great! :)

Instead of git submodules or the subtree merge strategy (which has a bit of a cumbersome workflow to master), there's actually a contrib to git called, "git subtree" which simplifies the whole process.

This would allow your super-project to have a clone of the sub-projects internally which can be split back out if you wish to contribute. This simplifies the cloning entirely for anyone else getting your project as they won't need to deal with extra fetches from various repositories with different credentials.

You can read about the contrib "git subtree" here: https://github.com/git/git/tree/master/contrib/subtree (be sure to check git-subtree.txt)

Also, since you tagged tortoisegit, you might be interested to know I'm working on contributing support for subtrees right now in a tortoisegit fork https://github.com/johnb003/TortoiseGit/tree/subtree-add

Since you're using SSH as a transport you can use ~/.ssh/config to set a default username for the specific host:

Host git.example.org
    User my-git-account
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!