在项目中创建Webhooks
在钉钉群创建机器人
复制access_token到gitlab中
推送代码到仓库测试
MacBook-Pro:~ lucky$ cd gitlab/ MacBook-Pro:gitlab lucky$ git config --global user.name "Administrator" MacBook-Pro:gitlab lucky$ git config --global user.email "admin@example.com" MacBook-Pro:gitlab lucky$ git clone git@gitlab.locallhost.vip:root/lucky.git Cloning into 'lucky'... The authenticity of host 'gitlab.locallhost.vip (35.228.232.216)' can't be established. ECDSA key fingerprint is SHA256:kRg4zyUf+9ZFUFDiWsJxgREbQc7XAWcsg8AWxyIKzAg. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'gitlab.locallhost.vip' (ECDSA) to the list of known hosts. warning: You appear to have cloned an empty repository. MacBook-Pro:gitlab lucky$ cd lucky MacBook-Pro:lucky lucky$ touch README.md MacBook-Pro:lucky lucky$ git add README.md MacBook-Pro:lucky lucky$ git commit -m "add README" [master (root-commit) 80bcdc5] add README 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 README.md MacBook-Pro:lucky lucky$ git push -u origin master Enumerating objects: 3, done. Counting objects: 100% (3/3), done. Writing objects: 100% (3/3), 216 bytes | 216.00 KiB/s, done. Total 3 (delta 0), reused 0 (delta 0) To gitlab.locallhost.vip:root/lucky.git * [new branch] master -> master Branch 'master' set up to track remote branch 'master' from 'origin'.
继续阅读
- 我的QQ
- QQ扫一扫
-
- 我的头条
- 头条扫一扫
-
评论