1.在linux下获取项目:

第二节:Linux下检出项目和提交项目

2.在linux中提交项目:

第二节:Linux下检出项目和提交项目

这时候我们在光标处添加注释,然后保存退出。

再查看下状态:

第二节:Linux下检出项目和提交项目

接下来问题来了:

第二节:Linux下检出项目和提交项目

解决办法:

vim .git/config

修改:[remote "origin"]      url = https://github.com/youname/example.git  

为:[remote "origin"]      url = https://youname@github.com/youname/example.git 

然后git push,又发现问题:

第二节:Linux下检出项目和提交项目

解决办法:

第二节:Linux下检出项目和提交项目

查看状态:

第二节:Linux下检出项目和提交项目

 

相关文章:

  • 2021-11-02
  • 2021-07-30
  • 2022-01-13
  • 2021-04-14
  • 2021-06-21
  • 2021-12-16
  • 2022-01-13
  • 2021-07-08
猜你喜欢
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-05-18
  • 2021-04-01
  • 2021-09-22
  • 2021-08-11
相关资源
相似解决方案