gitlab学习笔记(一):gitlab基础知识 在gitlab中创建项目

一、在gitlab中创建项目

单击:new project

二、在本地创建新项目

## Git push using SSH
git push --set-upstream git@gitlab.example.com:namespace/nonexistent-project.git master

## Git push using HTTP
git push --set-upstream https://gitlab.example.com/namespace/nonexistent-project.git master

  

推送成功完成后,远程消息将指示设置远程的命令和新项目的URL:

 
remote:
remote: The private project namespace/nonexistent-project was created.
remote:
remote: To configure the remote, run:
remote:   git remote add origin https://gitlab.example.com/namespace/nonexistent-project.git
remote:
remote: To view the project, visit:
remote:   https://gitlab.example.com/namespace/nonexistent-project
remote:

  

 

posted @ 2018-07-14 22:35  tutu_python  阅读(312)  评论(0)    收藏  举报