Git
fogfore
web前后端技术学习与分享
展开
-
CentOS 搭建 Git服务器
GitHub是一个免费托管开源代码的远程仓库,但是有时候我们既不想公开源代码,又不想给GitHub交保护费。如果这时候我们有一台自己的服务器,那我们就可以把这个服务器搭建成一台Git服务器作为私有仓库使用 1.安装Git sudo yum install -y git 2.创建一个git用户和用户组,用来运行git服务 # 创建git用户组 sudo groupadd git # 创建g...原创 2018-10-21 19:06:39 · 108 阅读 · 0 评论 -
使用Docker部署Gitlab
安装 如果本地测试,将hostname替换为localhost。如果让外部系统也能访问的话使用外网IP地址 如果端口已经被占用可以映射为其他端口,不过要配置SElinux和firewalld sudo docker run --detach \ --hostname gitlab.example.com \ --publish 443:443 -...原创 2018-11-19 22:51:01 · 222 阅读 · 0 评论 -
GitLab修改用户密码
su - git gitlab-rails console production user = User.where(email: 'admin@localhost').first 或者 User.where(id:1).first user.password = 'yourpassword' user.save! 演示: root@115:/va...原创 2018-12-04 17:12:30 · 10495 阅读 · 0 评论