Standard Gitlab command line using the guide git for linux

gitlab is a distributed version of the warehouse, better than just a local manual better, but also after uploading your native code web GUI operation, why not?

Paste just built gitlab, see how git standard command-line operation Operating Instructions

1. Guidelines command line

yum install git
Command line instructions
You can also upload existing files from your computer using the instructions below.


Git global setup
git config --global user.name "alex"
git config --global user.email "[email protected]"

Create a new repository
git clone https://gitlab.example.com/alex/test-repo.git
cd test-repo
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

Push an existing folder
cd existing_folder
git init
git remote add origin https://gitlab.example.com/alex/test-repo.git
git add .
git commit -m "Initial commit"
git push -u origin master

Push an existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin https://gitlab.example.com/alex/test-repo.git
git push -u origin --all
git push -u origin --tags

 

PS:

git for linux use

Use Git bash tutorials on windows

 

2.deveolper create a branch and submit merge branches

-c http.sslverify = git false clone HTTPS: // gitlab.example.com/root/test-repo.git 

cd the Test - repo 
git Checkout -b release- 1.0 
version # operation is complete, add local and submit the modified branch 
Git the Add. 
Git the commit -m " Release-1.0 " 
Git -C = http.sslVerify to false Push Origin Release-L. 0

 

Create merge request and then submit the gitlab, while suggesting Assignee to lead to complete the look of the operating deveploer, wait for confirmation of the operation to a higher level

 

 

 

 

 

 

[root@vps ~]# gitlab-ctl stop
ok: down: alertmanager: 1s, normally up
ok: down: gitaly: 0s, normally up
ok: down: gitlab-exporter: 0s, normally up
ok: down: gitlab-workhorse: 1s, normally up
ok: down: grafana: 0s, normally up
ok: down: logrotate: 1s, normally up
ok: down: nginx: 0s, normally up
ok: down: node-exporter: 1s, normally up
ok: down: postgres-exporter: 0s, normally up
ok: down: postgresql: 0s, normally up
ok: down: prometheus: 0s, normally up
ok: down: redis: 0s, normally up
ok: down: redis-exporter: 1s, normally up
ok: down: sidekiq: 0s, normally up
ok: down: unicorn: 0s, normally up
[root@vps ~]#

 

Guess you like

Origin www.cnblogs.com/firewalld/p/12236689.html