Workflow
All projects reside in https://gitlab.rc.uab.edu/rc
Terminology
- repo - project space containing your code.
- upstream - main repo which is the source of authority for the code
- fork - copy of the upstream repo.
- worktree - local project dir on your machine.
Git Workflow
- Create your own fork of the upstream repo if one doesn't exist.
- Create a new branch and start editing files in your work tree.
- Commit changes in smaller and logical increments to the feature branch.
- All commits are made to the feature branch.
- When ready push the feature branch to your forked repo.
- Open a pull/merge request to the default branch, usually it is main and is inherited from the upstream repo
- Open a pull/merge request against the upstream repo if you/team wants the visibility. Make sure you have a draft tag in front of it, so it is not accidentally merged.
- Let the CI/CD pipeline run in your repo. After a successful pipeline run open a merge request against the upstream repo
- If the pipeline in the upstream succeeds, it is ready for testing.
- Once tested thoroughly merge the PR/MR.