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

1.在linux下获取项目:

2.在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,又发现问题:

解决办法:

查看状态:

 

posted @ 2018-04-05 10:57  虚极静笃  Views(248)  Comments(0)    收藏  举报