一、IDEA创建本地项目

IDEA创建项目并提交到GitHub

二、提交(托管)项目,提交到github的(简便方式)

1、注册github账号(此处省略)

2、Settings(Ctrl + Alt + S)-->IDEA 绑定github账号

IDEA创建项目并提交到GitHub

3、分享项目到github

IDEA创建项目并提交到GitHub

4、分享、初始提交(Initial commit)

IDEA创建项目并提交到GitHub

IDEA创建项目并提交到GitHub

IDEA创建项目并提交到GitHub

三、第二种托管方式

托管到github, gitee、gitlab等, (这里github举例)

1、创建好本地项目,给项目创建本地仓库

IDEA创建项目并提交到GitHub

IDEA创建项目并提交到GitHub

红色(未加入版本控制)

IDEA创建项目并提交到GitHub

加一下

IDEA创建项目并提交到GitHub

绿色(已加入版本控制,未提交)

IDEA创建项目并提交到GitHub

2、有托管网站的账号(github、gitlab、gitee等), 没有去注册一个

3、创建一个远程仓库(这里github举例)

IDEA创建项目并提交到GitHub

IDEA创建项目并提交到GitHub

IDEA创建项目并提交到GitHub

3、复制创建好的地址(远程仓库URL)

IDEA创建项目并提交到GitHub

4、将远程仓库与本地仓库关联起来

IDEA创建项目并提交到GitHub

IDEA创建项目并提交到GitHub

IDEA创建项目并提交到GitHub

5、提交项目到git本地缓存(git本地暂存区)

IDEA创建项目并提交到GitHub

IDEA创建项目并提交到GitHub

白色(commit 到 git 本地了)

IDEA创建项目并提交到GitHub

6、push 到远程仓库

IDEA创建项目并提交到GitHub

IDEA创建项目并提交到GitHub

IDEA创建项目并提交到GitHub

最后,要提交本地项目到不同的远程仓库,在这里添加不同的远程仓库的URL

IDEA创建项目并提交到GitHub

 

 

 

 

相关文章: