Docs/CICD/gitLab.md
2022-10-18 16:59:37 +08:00

14 lines
No EOL
547 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

安装gitlab
修改配置文件
执行gitlab-ctl reconfigure重新加载配置
git reset -hard HEAD^ # 回滚到上一个版本(本地)
git log # 查看版本号
git reset -hard commitID # 回滚到指定版本
git checkout branches_name # 切换到branches_name分支
git merge dev # 把dev分支合并到branches_name分支
git remote update origin --prune # 更新远程分支列表
git branch -a # 查看所有分支
git push origin --delete Chapater6 # 删除远程分支Chapater6
git branch -d Chapater6 # 删除本地分支 Chapater6