Gitlab Workflow
Published: Wednesday, Dec 7, 2022 Last modified: Monday, Dec 9, 2024
When making a change my workflow is:
git status
to see if we are cleangit branch
to check which is likely the “main” branchgit checkout main
- switch to “main” branch (assuming it’s not master)git pull
make sure I’m working with the latestgit checkout -b $name-of-thing-I-will-work-on
- wish I could say naming the branch is easy- Stage a prefect commit
git commit
with [Jira tag], often requires a look up in a browser because I can’t remembergit push
- Follow push message:
To create a merge request for $name-of-thing-I-will-work-on, visit:
- Click create MR and remove weird closes [Jira tag] in description autofilled by Gitlab 🤷
- Click Approve if I can, otherwise goto slack and paste URL for someone to hopefully review
- Try merge if I can (after CI is complete, wait ~5mins)
- Back to terminal, perhaps delete merged branch
Comments?