How to create a gitlab project from terminal or command line

后端 未结 2 492
太阳男子
太阳男子 2020-12-18 11:40

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)

In the

2条回答
  •  旧巷少年郎
    2020-12-18 12:05

    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
    

    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

提交回复
热议问题