git - Gitlab推送到开发分支中的子目录
问题描述
我正在尝试从 github 迁移到 gitlab 并创建了该帐户。我有两个分支 - master 和 development 和另一个文件夹,正在开发中进行测试。现在,我想将所有更改提交到这个测试文件夹。
我该怎么做呢?
我试过git push -u origin development/test
但不起作用。有小费吗?谢谢。
解决方案
git clone --mirror git@firstplace.TLD/account/repo.git
cd repo.git
git push --mirror git@secondplace.TLD/account/repo.git
你想镜像仓库
推荐阅读
- reactjs - React-native:在不同的屏幕中删除 BackHandler
- java - 如何在 Android API 16 中使用 MediaSessionManager?
- bitbucket-server - 我可以在 preUpdate 中获取当前用户(atlassian bitbucket 插件)
- python - Python - 多条件条件
- angular - Angular:自定义管道事件处理
- bash - MacOS catalina Makefile 无法正确处理在 CLI 中工作的 shell 命令
- spacy - 添加正则表达式以停止 spacy 中的单词
- google-chrome - 非隐身模式下的vscode chrome调试器
- angular - Angular8:HttpClient发布到服务器地址
- c++ - 检测和计数接触(遮挡问题)并具有相同颜色的图像