1、$ ssh-agent bash

2、$ ssh-add ~/.ssh/id_rsa_hyp 添加ssh密匙

3、$ git fetch git@github.com:xxx.git master 从远程仓库fetch项目

4、也可以git fetch git@github.com:xxx.git master:temp建立新分支temp,将代码合并到新分支temp上,在删除新分支temp

5、$ git merge FETCH_HEAD 合并项目

6、$ git status 查看状态

7、$ git add -A 增加修改后的文件

8、$ git commit -m "optimization write protection!" 提交

9、$ git remote add origin git@github.com:xxx.git 添加远程仓库

10、$ git push -u origin master 推送到远程仓库

相关文章:

  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-04
  • 2022-02-09
  • 2021-09-21
  • 2022-02-09
相关资源
相似解决方案