idea2018整合git提交代码到github仓库

idea2018整合git提交代码到github仓库

  1. 在git创建仓库

  2. 复制刚刚创建好的仓库路径:clone with https

  3. 然后打开idea如下图:
    idea2018整合git提交代码到github仓库idea2018整合git提交代码到github仓库

  4. 愉快编码和配置过程

  5. 提交git项目注意事项:只提交pom依赖,java源代码,配置文件,其他的一律不提交到git仓库,否则在团队合作开发的容易引起报错问题;如下图类似文件不能提交,这是合作开发的禁忌;
    idea2018整合git提交代码到github仓库

  6. 修改或者新增文件后需要添加到本地仓库
    idea2018整合git提交代码到github仓库

  7. 同步文件到本地仓库
    idea2018整合git提交代码到github仓库

  8. 点击push,这里可以最后在检查一遍要提交的文件,无误后在点击push提交并且合并仓库,
    idea2018整合git提交代码到github仓库