idea创建项目提交远程git
Posted 点滴
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了idea创建项目提交远程git相关的知识,希望对你有一定的参考价值。
创建新项目并提交到远程Git仓库![](https://image.cha138.com/20210609/d17966c945644bee8c9e979aba11797b.jpg)
![](https://image.cha138.com/20210609/a3a4fffcb53342448307177ff7e9972d.jpg)
![](https://image.cha138.com/20210609/f475382f30f84e49ae747fcf5c634c84.jpg)
![](https://image.cha138.com/20210609/a38bd554192d47f4821fa5ff047d3be1.jpg)
![](https://image.cha138.com/20210609/b0a16b732a5948d68a021991a23c0dfc.jpg)
![](https://image.cha138.com/20210609/c8ae336f4360434d8b55d917e94e59d0.jpg)
![](https://image.cha138.com/20210609/d17966c945644bee8c9e979aba11797b.jpg)
![](https://image.cha138.com/20210609/a3a4fffcb53342448307177ff7e9972d.jpg)
点击OK后,创建完成本地仓库 。
![](https://image.cha138.com/20210609/f475382f30f84e49ae747fcf5c634c84.jpg)
![](https://image.cha138.com/20210609/a38bd554192d47f4821fa5ff047d3be1.jpg)
![](https://image.cha138.com/20210609/b0a16b732a5948d68a021991a23c0dfc.jpg)
因为是第一次提交,Push前需要指定远程仓库的地址。如下图,点击Define remote后,在弹出的窗口输入远程仓库地址:
![](https://image.cha138.com/20210609/c8ae336f4360434d8b55d917e94e59d0.jpg)
![](https://image.cha138.com/20210609/fa5fa7b502e94099beb67c6312f04be6.jpg)
![](https://image.cha138.com/20210609/de58fb774ea348bead5479355196c6a6.jpg)
可以在远程仓库中看到,项目已被提交到gitlab远程仓库。
以上是关于idea创建项目提交远程git的主要内容,如果未能解决你的问题,请参考以下文章