如何从终端或命令行创建gitlab项目 [英] How to create a gitlab project from terminal or command line
问题描述
我有内部设置gitlab服务器.我想运行单独的ant脚本并在该gitlab服务器中创建一个项目. (无需在gitlab UI中创建新项目)
I have internal setup gitlab server. I want to run separate ant script and create a project in that gitlab server. (without creating new project in gitlab UI)
在蚂蚁中,我可以使用exec可执行文件并运行bash命令.
In the ant i can use exec executable and run the bash commands.
还有如何将可见性级别和其他参数发送到gitlab服务器以创建项目?
And also how to send the Visibility Level and other parameters to gitlab server to create the project?
推荐答案
要使用HTTPS从终端或命令行创建gitlab项目,请使用以下命令:
To create a gitlab project from terminal or command line using HTTPS, these are the commands:
//In a desired local folder
git init
//Add all files to commit
git add -A
//Commit all
git commit -m "Inital version"
//Add an alias origin to master branch
git remote add origin https://gitlab.com/minhasaulas/2018/corporativos/ServidorEureka.git
//Push change to remote repository
git push origin master
如果要使用SSH从终端或命令行创建gitlab项目,请访问以下网址: https://www.pluralsight.com/guides/using- git-and-github-on-windows
If you want to create a gitlab project from terminal or command line using SSH visit this url: https://www.pluralsight.com/guides/using-git-and-github-on-windows
这篇关于如何从终端或命令行创建gitlab项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!