GitLab常用指令!(工作中常用的)

目录

克隆代码

复制完地址,打开Git Bash,然后

python 复制代码
git clone "复制的地址"

创建分支

创建new_test分支

python 复制代码
git branch new_test

切换分支

切换到new_test分支

python 复制代码
git checkout new_test

将代码提交到分支当中

python 复制代码
git add .
python 复制代码
git commit -m "注释"
python 复制代码
git push origin new_test

Merge合并

  • 登录GitLab,右上角会有一个合并请求的按钮
  • 然后正常操作即可
相关推荐
一念一花一世界4 小时前
Arbess从初级到进阶(9) - 使用Arbess+GitLab实现C++项目自动化部署
c++·ci/cd·gitlab·arbess
X***48964 小时前
GitLab
gitlab
一世一生命5 小时前
GitLab Package依赖管理:从 Dependabot 到 Renovate 的迁移实践和两者对比
gitlab
t***L2665 小时前
GitLab API使用实例
运维·gitlab
x***B41112 小时前
GitLab Runner配置教程
gitlab
9***Y4812 小时前
GitLab CI/CD配置教程
ci/cd·gitlab
y***548814 小时前
GitLab CI缓存配置
缓存·ci/cd·gitlab
p***c94914 小时前
GitLab CI/CD变量
git·ci/cd·gitlab
O***p60414 小时前
GitLab CI/CD自动化部署实践
ci/cd·自动化·gitlab
知兀1 天前
私有化部署的gitlab的push failed问题,使用http远程连接(使用token或用户、密码)
gitlab