gitlab上創建project並與本地項目綁定

project_001 

Desc : project_001 is ......。

 Star 

SSH 

 Global 

The repository for this project is empty

If you already have files you can push them using the command line instructions below.

Note that the master branch is automatically protected. Learn more about protected branches

 


You can automatically build and test your application if you enable Auto DevOps (Beta) for this project. You can automatically deploy it as well, if you add a Kubernetes cluster.


Otherwise it is recommended you start with one of the options below.

  • New file
  • Add Readme
  • Add License
  • Enable Auto DevOps
  • Add Kubernetes cluster

 

Command line instructions

Git global setup

git config --global user.name "balabala"
git config --global user.email "[email protected]"

Create a new repository

git clone http://111.111.111.111:12222/mydata/project_001.git
cd project_001
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

Existing folder

cd existing_folder
rm -rf .git (如果事先關聯了其他的repository, 可以先刪去原引用關係)
git init
git remote add origin http://111.111.111.111:12222/mydata/project_001.git
git add .
git commit -m "Initial commit"
git push -u origin master

Existing Git repository

cd existing_repo
git remote rename origin old-origin
git remote add origin http://111.111.111.111:12222/mydata/project_001.git
git push -u origin --all
git push -u origin --tags

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章