参考博客:http://blog.csdn.net/u011853294/article/details/53228720

在项目开发中,经常需要将idea中的项目,上传到github上,因此在此我总结一下使用idea将项目上传到github的步奏

1、首先下载git bash

这是我在csdn上找到的下载资源地址:http://download.csdn.net/download/xuyanlu/5545823

2、在idea中配置git

file-->setting-->version control-->git

上传idea中的项目到github

配置完成后,点击test

上传idea中的项目到github

测试成功

3、创建本地仓库

VCS-->import into version control-->create git respositroy

上传idea中的项目到github

之后文件名都变成了红色

上传idea中的项目到github

4、右击文件工程-->git-->add,这时文件名会变成绿色

上传idea中的项目到github

5、右击工程文件-->git-->commit,提交到本地git。

可以在commit message处添加备注信息

上传idea中的项目到github

提交完成后文件名变成白色。

至此,本地git已经commit完毕

6、将本地git项目上传到github中。

进入项目文件夹所在目录,右击文件夹-->git bash here

依次输入以下命令;

$ git remote add origin [email protected]:LynnOhYeah/girl.git

$ git pull [email protected]:LynnOhYeah/girl.git

$ git push [email protected]:LynnOhYeah/girl.git

出现下图代表上传成功

或者:

选中项目,git--》epository--》push,将项目更新到远程git仓库


相关文章:

  • 2021-10-25
  • 2021-08-04
  • 2021-07-04
猜你喜欢
  • 2022-12-23
  • 2021-08-19
  • 2021-05-22
  • 2021-05-31
  • 2021-08-27
  • 2021-09-09
  • 2021-12-30
相关资源
相似解决方案