-
Notifications
You must be signed in to change notification settings - Fork 0
Git Workflow
John Clardy edited this page Jul 28, 2026
·
3 revisions
DO NOT make changes directly to the main branch.
The main branch should always remain in a deployable, stable state. All development work must be performed in a separate branch and reviewed before being merged.
-
Pull the latest changes
- Open GitHub Desktop.
- Ensure you are on the
mainbranch. - Select Fetch origin and then Pull origin if updates are available.
-
Create a new branch
- Select Current Branch -> New Branch.
- Name the branch according to the work being performed.
Examples:
feature_updateCompressorData fix_pressureCalculation docs_namingConventionUpdate -
Switch to the new branch
- Verify the new branch is selected before making any changes.
-
Make your changes
- Edit project files as needed.
- Save your work.
-
Commit your changes
- In GitHub Desktop, review the changed files.
- Enter a short, descriptive commit message.
- If your commit finishes a task, include in the description
Fixes #<Issue Number>orCloses #<Issue Number>
- If your commit finishes a task, include in the description
- DO NOT COMMIT LARGE DATA FILES
Examples:
Add compressor efficiency calculations Fix pressure ratio equation Update naming convention documentation -
Push the branch
- Select Push origin to upload your branch to GitHub.
- If you have not finished work, still push to your branch to save your work online. This lets you continue from another computer.
-
Create a Pull Request
- Only submit a Pull Request (PR) when you are done with work on your branch
- Select Create Pull Request in GitHub Desktop (or on GitHub).
- Provide a brief description of the changes.
- Include in the description the task the PR finishes
Fixes #<Issue Number>orCloses #<Issue Number>
- Include in the description the task the PR finishes
- Request a review so changes can be merged. One reviewer is required to merge to main.
-
Wait for Approval
- Merge the Pull Request into
mainonly after it has been reviewed and approved by one other member. The approver may merge for you. - Resolve any comments that may prevent the merge.
- Merge the Pull Request into
-
Update your local repository
- After the Pull Request is merged:
- Switch back to the
mainbranch. - Pull the latest changes.
- Delete the completed feature branch if it is no longer needed.
- Switch back to the
- After the Pull Request is merged:
- If there are changes to the main branch while you are working on your own branch, you can pull the changes to your branch by clicking
Ctrl + Shift + Uor by going toBranch->Update from Main.
- Use lowercase prefixes followed by a descriptive camelCase name.
- You can name based on the task you are making or any other name you see fit. Potential examples below.
dataStructure
hpc_firstStageRevisions
initialGasturbModel
ansysAnalysisCfd
- Keep commit messages short and descriptive.
- Break commits up; don't submit one mega-commit. Check which files go together in a commit and describe the work you did.
- Remember to include the tasks the commit closes with
Fixes #<Issue Number>orCloses #<Issue Number>. Also include this on the PR in case you forget to include it in the commit messages.
Add turbine performance report. Fixes #5
Fix compressor efficiency calculation. Closes #10
Update project documentation. Closes #8
Refactor folder organization. Fixes #101
Stuff
Update
Changes
Fix
asdf
- Never commit directly to the
mainbranch. - Always create a new branch before making changes.
- Pull the latest changes before creating a branch.
- Keep Pull Requests focused on a single task whenever possible.
- Write clear commit messages so project history remains easy to understand.
- Delete completed branches after they have been merged.
- Always link the commit or PR to the task with
Fixes #<Issue Number>orCloses #<Issue Number>. If you forget, close the task manually when merged.