git操作
文章平均质量分 88
忆丶chen
热爱IT,热爱新技术
展开
-
Git submodule 与 Git Remote
业务场景一、Git Submodule : 业务场景:项目中经常会使用到第三方的 git 库, 将三方库整合到自己项目中, 但是如果这个库升级了一个很酷炫的功能,我们需要获取它的最新代码 1、添加第三方库关联,作为一个submodule,子库 $ git submodule addhttps://github.com/pingcc/MyApplication.git 2、查看是否关联成功 $ git status On branch master Your branch is up to dat.原创 2020-12-16 19:39:35 · 501 阅读 · 0 评论 -
Git迁移新的版本库Git地址
1.从git服务器上克隆一份裸版本库 ;如github仓库: $ git clone --bare https://github.com/pingcc/AndroidDevelopAssistant.git 克隆成功后的裸库截图 2.在github上新建一个AndroidDevelopAssistant_copy备份仓库 3.以镜像推送的方式上传代码到 ndroidDevelopAssistant_copy服务器上。 cdAndroidDevelopAssistant.git 进入git...原创 2020-06-02 21:19:27 · 403 阅读 · 0 评论