美文网首页程序员git
Idea 首次提交代码到gitlab上

Idea 首次提交代码到gitlab上

作者: 夹胡碰 | 来源:发表于2020-10-26 09:15 被阅读0次

1. 点击 VCS >Import into Version Control >Create Git Repository

image.png
  • 选择本项目地址


    image.png
  • 执行之后可以看到在项目地址下生成了个 .git文件夹


    image.png
  • 并看到项目文件全部变红


    image.png

2. 执行add

image.png

3. 执行commit

image.png

4. 执行commit and push

image.png

5. 设置gitlab项目地址

注意是项目地址,不是gitlab服务器URL

image.png
  • 输入用户名密码


    image.png

5. 执行push

image.png

6. push成功

image.png
  • gitlab上查看提交成功


    image.png

相关文章

网友评论

    本文标题:Idea 首次提交代码到gitlab上

    本文链接:https://www.haomeiwen.com/subject/ifkemktx.html