git config --global user.name/email),建议添加SSH Key到 GitLab(Profile → SSH Keys)以便免密推送与拉取。以上步骤完成后,团队即可在同一项目内协同开发。git checkout main && git pull;如需基于开发基线则 git checkout develop && git pull。git checkout -b feature/your-task(命名清晰,避免直接使用 main 开发)。git add .、git commit -m "feat: 完成xxx",保持提交粒度小而清晰。git push origin feature/your-task,在 GitLab 页面创建Merge Request指向目标分支(如 develop/main),指派Reviewer/Assignee,关联Issue,按需开启WIP以表明未完成。priority/P0、kind/bug、area/xxx、size/M),指派Assignee、设置Milestone(版本或迭代),在评论中用 @用户名 通知相关人。stages:
- build
- test
- deploy
build_job:
stage: build
script:
- echo "Building..."
test_job:
stage: test
script:
- echo "Testing..."
deploy_job:
stage: deploy
script:
- echo "Deploying..."