-
Notifications
You must be signed in to change notification settings - Fork 133
[#736] Update Git workflows chapters #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
||
The `staging` branch is reset to `master` after each sprint, or more frequently as we see fit: | ||
The `staging` branch is reset to the `main` branch after each sprint, or more frequently as we see fit: | ||
|
||
```bash | ||
git switch staging | ||
git reset --hard origin/master | ||
git push origin staging --force |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left master
in the bash commands because I think most of our projects still name the default branch master
instead of main
, so in practice we usually write origin/master
rather than origin/main
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, alternatively to the main
branch we could also be referencing the default branch (GH docs).
|
||
The `staging` branch is reset to `master` after each sprint, or more frequently as we see fit: | ||
The `staging` branch is reset to the `main` branch after each sprint, or more frequently as we see fit: | ||
|
||
```bash | ||
git switch staging | ||
git reset --hard origin/master | ||
git push origin staging --force |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, alternatively to the main
branch we could also be referencing the default branch (GH docs).
Task: #736
Aim
Update Git workflows chapters
Solution
Connected to this PR
Use
main branch
instead ofmaster
Use
integrate
instead ofmerge