-
Notifications
You must be signed in to change notification settings - Fork 0
Git Workflow
John Clardy edited this page Jul 27, 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.
- 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 fishished 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 Pill 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.
- 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 my prevent 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 off the task you are making or any other name you see fit. Potential examples below.
| Type | Format | Example |
|---|---|---|
| New Feature | feature_description |
feature_addPerformanceCharts |
| Bug Fix | fix_description |
fix_pressureCalculation |
| Documentation | docs_description |
docs_updateNamingGuide |
| Refactor | refactor_description |
refactor_fileStructure |
- Keep commit messages short and descriptive.
- Break commits up, dont sumbit one megacommit. Check which files go together in a comit and describe the work you did.
Add turbine performance report
Fix compressor efficiency calculation
Update project documentation
Refactor folder organization
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.