本地项目在github和coding上同步
来源:互联网 发布:centos安装tengine 编辑:程序博客网 时间:2024/06/08 09:04
- 用过一段时间的github,一直挺顺畅,突然用上了coding,略不适应,因此把coding和github上的远程仓库统一同步.
- 之前设置过SSH key,其值放在目录/.ssh/id_rsa.pub中,注意不是id_rsa,把id_rsa.pub文件中的ssh值放入
- 此时已经在github和coding中已经设置好了SSH,用git remote set-url命令实现二者的同步
$git remote add both git@git.coding.net:user/project.git# 添加一个名为 both 的远端$git remote set-url --add --push both git@git.coding.net:user/project.git# 为其添加 push 到 Coding 的 SSH 地址$git remote set-url --add --push both git@github.com:user/repo.git# 为其添加 push 到 GitHub 的 SSH 地址$git remote -v #查看当前远端仓库origin git@git.coding.net:user/project.git (fetch)origin git@git.coding.net:user/project.git (push)github git@github.com:user/repo.git (fetch)github git@github.com:user/repo.git (push)
之后在推送的时候科研用git push both
实现二者同步更新
1 0
- 本地项目在github和coding上同步
- 在GitHub上创建数据仓库,并且同步到本地,本地的修改同步到GitHub
- Hexo博客同时部署在Github和Coding上
- 向github、coding上提交项目
- 在github上新建仓库,上传本地项目
- 在github上新建项目并关联到本地
- 从github上同步代码到本地
- 同步本地工程到gitHub上
- 在 Ubuntu14.04 上部署 Hexo+Node.js 到 Github 和 coding 和 gitee
- GitHub网站项目同步到本地
- 将本地代码库和Github同步
- 从本地上传项目到github上
- IDEA 本地项目导入到gitHub上
- 将本地项目托管到GitHub上
- 将本地项目托管到GitHub上
- 将本地项目托管到GitHub上
- 将本地项目托管到GitHub上
- 将本地项目托管到GitHub上
- 【转】React Router 使用教程
- WEKA使用教程(经典教程转载)
- pat甲1115. Counting Nodes in a BST(BST二叉搜索树)
- 【每日一记】设计模式——工厂模式
- pww特征提取算法的经典应用
- 本地项目在github和coding上同步
- PS之调色
- Linux进程间通信——使用共享内存
- Summary of High-Speed Tracking with Kernelized Correlation Filters
- 归纳笔记018:MPMediaPickerController选择系统音乐
- C 语言链式调用与Tween算法实现(4)链式封装接口
- HDU 1086 You can Solve a Geometry Problem too
- servlet (一)
- 使用Java 对称加密(AES),提示"javax.crypto.BadPaddingException: Given final block not properly padded"