gitlab 命令
·
GitLab常用命令
sudo gitlab-ctl start # 启动所有 gitlab 组件;
sudo gitlab-ctl stop # 停止所有 gitlab 组件;
sudo gitlab-ctl restart # 重启所有 gitlab 组件;
sudo gitlab-ctl status # 查看服务状态;
sudo gitlab-ctl reconfigure # 启动服务;
sudo vim /etc/gitlab/gitlab.rb # 修改默认的配置文件;
gitlab-rake gitlab:check SANITIZE=true --trace # 检查gitlab;
sudo gitlab-ctl tail # 查看日志;
命令方式提交
需要先生成SSH key 信息
Command line instructions
Git global setup
git config --global user.name "hk" git config --global user.email "admin@admin.com"
Create a new repository
git clone http://node139/hk/user.git
cd user
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Existing folder or Git repository
cd existing_folder
git init
git remote add origin http://node139/hk/user.git
git add .
git commit
git push -u origin master
更多推荐
所有评论(0)