0
我从以下两个链接即兴来了分裂的子文件夹到一个新的仓库:如何在git中只存在开发时创建主分支?
- https://help.github.com/articles/splitting-a-subfolder-out-into-a-new-repository/
- http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/
的收益率:
cd ~/dev/newRepoName && \
git filter-branch --prune-empty --subdirectory-filter \
path/to/subfolder -- --all
但是因为我的子文件夹从来没有存在过,但在develop
分支,我结束了一个回购它只有develop
分支。
如何安全地创建master
分支? ...以便我可以继续使用gitflow以及建立在合理的git基础结构上的所有其他好东西。