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基礎結構上的所有其他好東西。