-
Notifications
You must be signed in to change notification settings - Fork 47
Guide to Creating Feature Branches, Pull Requests, and Releases
Mai edited this page Feb 25, 2025
·
1 revision
From the Command Line
- Ensure you are on
develop
and up-to-date
git checkout develop
git pull origin develop
- Create and switch to a new feature branch
git checkout -b {issue-number}-{short-description}
- Push the feature branch to the remote
git push origin {issue-number}-{short-description}
From GitHub Website
- Navigate to the repository on GitHub.
- Click on the "Branches" dropdown and select "New branch".
- Name the branch following the naming convention to be created from
develop
.
**Note: **It’s a good idea to rebase your feature branch before making a PR if you do not have the latest changes from develop in your branch. See rebasing instructions.
- Go to GitHub and navigate to the “Pull Requests” tab of the repository.
- Click "New Pull Request".
- Select
develop
as the base branch and your feature branch as the compare branch. - Use the provided PR template, add a title and description, then click "Create Pull Request".
- Once PR is approved, click "Merge Pull Request" and delete your feature branch.
From GitHub Website
- Navigate to the repository on GitHub.
- Click on "Releases" > "Draft a new release".
- Select
main
as the target branch. - Tag the release with a version number (e.g., v1.0.0).
- Add a title and a description summarizing the changes.
- Click "Publish Release".
More information on GitHub Releases here.