我克隆了一个存储库,并执行了一些本地更改。
然后,我做了一个git pull origin,以获得来自原点的更新更改。然后,我执行一个git push将其推送到我的克隆存储库。然而,子模块没有被推送:
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
我已经裸克隆了一个公共github存储库(比如projectA),并创建了一个私有github存储库(比如projectAPrivate),然后mirror将克隆的projectA推送到projectAPrivate(如所示
git clone --bare https://github.com/exampleuser/old-repository.git
# Make a bare clone of the repository
cd old-repository.git
git push --mirror https://github.com/exampleuser/new-reposi