
Gitlab
文章平均质量分 54
bob_young
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
获取git项目中最新的分支
获取git项目中最新的分支原创 2022-06-17 13:57:08 · 2690 阅读 · 0 评论 -
gitlab 利用curl获取用用户id及相关信息
curl -s -X GET -H "PRIVATE-TOKEN: ${TOKEN}" http://gitlab.com/api/v4/users?username=${yourname}原创 2021-07-24 16:56:38 · 1320 阅读 · 0 评论 -
查看gitlab自带捆绑库的版本
安装了Omnibus GitLab包之后,捆绑库的所有版本都位于 /opt/GitLab/version-manifest.txt中。如果您没有安装包,您可以随时检查Omnibus GitLab源库,特别是配置目录。原创 2020-08-17 16:09:33 · 260 阅读 · 0 评论 -
Gitlab搭建教程详解
Gitlab搭建教程详解 拟 制 人: 完成日期: 2017-05-11 审 核 人: 审核日期: 修改记录名称版本号拟制人/修改人拟制/修改日期更改理由主要更改内容(写要点即可)Gitlab服务器搭建V1.02017....原创 2018-06-12 10:25:37 · 796 阅读 · 0 评论 -
Gitlab恢复
# 停止相关数据连接服务gitlab-ctl stop unicorngitlab-ctl stop sidekiq查看备份默认备份目录是:ll /var/opt/gitlab/backups/# 从1393513186编号备份中恢复gitlab-rake gitlab:backup:restore BACKUP=1393513186# 启动Gitlabsudo gitlab-ctl start#...原创 2018-06-25 10:49:24 · 1642 阅读 · 0 评论 -
GitLab备份
本机备份利用crontab备份#定时备份0 9-21/4 * * 1-5 /opt/gitlab/bin/gitlab-rake gitlab:backup:create#删除超过7天的备份30 2 * * * find "/var/opt/gitlab/backups/" -name "*.tar" -mtime +7 -type f -exec rm -rf {} \;#每5分钟同步时间5 ...原创 2018-06-25 10:56:27 · 264 阅读 · 0 评论 -
gitlab查看版本号
#查看PostgreSQL版本/opt/gitlab/embedded/bin/psql --version#查看gitlab的版本cat /opt/gitlab/embedded/service/gitlab-rails/VERSION原创 2018-08-31 16:19:10 · 12456 阅读 · 0 评论 -
gitlab查看分支创建时间
git reflog --date=local --all原创 2018-12-14 18:16:22 · 14185 阅读 · 0 评论 -
gitlab api 批量保护&解保护branches或tags使用详解
参考教程:https://gitlab.com/help/api/protected_branches.md https://docs.gitlab.com/ee/api/protected_branches.htmlbranches支持gitlab 9.5及以上版本#列出受保护的分支curl --header "PRIVATE-TOKEN: &...原创 2019-01-23 10:11:17 · 7406 阅读 · 7 评论