怎么将本地代码提交到github仓库

280 阅读1分钟

1. 选择创建本地仓库

打开Idea中的VCS-->Create Git Repository

2. 选择当前项目目录作为本地git仓库目录

创建成功后,颜色将变为红色

3. 右键项目,选择Git,添加项目代码到本地

  1. 选择git里面的add,添加代码到本地库

4. 设置远程仓库Git地址

  1. 右键项目git-->repository-->remote
  2. 在次点击git-->Commit Diretory

5. 最后点击git,点击push

遇到的问题:

unable to access 'https://github.com/zycloudyyy68/guns-parent.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
你可以登录网页,再试试,其实已经提交成功了.