This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
сервис_git [2022/08/14 18:21] val [Создание сетевого http/ssh git репозитория] |
сервис_git [2022/08/16 14:00] val [Пример с тестовой веткой] |
||
---|---|---|---|
Line 160: | Line 160: | ||
==== On-Premise gitlab ==== | ==== On-Premise gitlab ==== | ||
<code> | <code> | ||
- | $ git clone http://server.corp14.un/student/dhcp.git | + | # git clone http://server.corpX.un/student/dhcp.git |
или | или | ||
Line 198: | Line 198: | ||
==== Пример с тестовой веткой ==== | ==== Пример с тестовой веткой ==== | ||
<code> | <code> | ||
- | $ git branch test | + | λ git branch test |
- | $ git branch -a | + | λ git branch -a |
- | $ git checkout test | + | λ git checkout test |
... edit ... commit ... | ... edit ... commit ... | ||
- | $ git push -u origin test | + | λ git push -u origin test |
+ | |||
+ | root@server:~/openvpn1# git pull origin test | ||
+ | root@server:~/openvpn1# ansible-playbook ... test_nodes | ||
+ | или | ||
... ci/cd test ... | ... ci/cd test ... | ||
+ | |||
+ | |||
$ git checkout main | $ git checkout main |