天天看点

如何在Idea提交代码到Github上

一,配置账户

1. Setting >> Version Control >> git,配置git的安装目录(一般默认识别),其他参数不变

如何在Idea提交代码到Github上

2.配置GitHub账户,输入GitHub账户/密码

如何在Idea提交代码到Github上

 二,提交代码到Github

1.CVS >> import into version control >> share project on github(用于第一次提交到GitHub)

如何在Idea提交代码到Github上

 2.new repository name 不存在Github中。

.

如何在Idea提交代码到Github上

3.检查需要提交的内容

如何在Idea提交代码到Github上

3. Github页面显示

如何在Idea提交代码到Github上

4.新修改的代码提交

选择 version contro,显示需要提交的代码l

如何在Idea提交代码到Github上

5.框选代码,右击commit,选择commit and push,输入comment,按提示提交完成。

如何在Idea提交代码到Github上

转载于:https://www.cnblogs.com/asunwei/p/9533424.html