建设网站怎么提需求,seo北京网站推广,网页版微信二维码怎么生成,水泵行业网站怎么做1. idea上传本地项目到gitlab
1. 配置idea里本地安装的git位置
即选择 Settings - Version Control - Git - Path to Git executable 2. 在idea创建本地仓库
即选择 VCS - Create Git Repository
然后选择目录#xff0c;默认就是选择的当前项目#xff…1. idea上传本地项目到gitlab
1. 配置idea里本地安装的git位置
即选择 Settings - Version Control - Git - Path to Git executable 2. 在idea创建本地仓库
即选择 VCS - Create Git Repository
然后选择目录默认就是选择的当前项目所以不用修改路径。 然后项目变红选择要add的文件Git - Add把要忽略的文件加到.gitignoreGit - Add to .gitignore。 add以后文件就会变绿然后就可以commit到本地仓库。即选择 Git - Commit Directory commit以后就可以到远程的git库创建一个空的仓库注意不要选择initialize repository with a README。 然后复制远程仓库地址添加到push里即选择 Git - Push - Define remote 即完成本地idea项目上传gitlab。
2. idea下载gitlab项目到本地
1. 获取gitlab项目地址
即到gitlab项目上点击 Clone复制里面的 Clone with HTTP的值
2. File - New-Project from View Control.
3. 在弹窗中输入Git地址和本地保存路径
即完成拉取gitlab项目到idea本地。
3. idea项目解除git关联
File-Setting-Version Control选中删除再到项目目录里删除.git文件夹。