GitHub-- 用IDEA在github 上上传代码

用idea上传GitHub三个步骤:

1.登陆GitHub,在其中选择分支:

新建分支。

2.使用命令语句,将idea中的代码上传:

(1)git fetch && git checkout lList  (注:List为主类名)    下载和远程分支和切换

(2)git config --global credential.helper store           保存账号和密码

(3)git pull     然后 递交上去  

(4)git push

则更新成功!

下面图片显示,3段代码:

(注:第一段代码拼写错误)

原文地址:https://www.cnblogs.com/Catherinezhilin/p/8480669.html