Skip to content

[#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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AnaCepic
Copy link

@AnaCepic AnaCepic commented May 2, 2025

Task: #736

Aim

Update Git workflows chapters

Solution

Connected to this PR
Use main branch instead of master
Use integrate instead of merge

@AnaCepic AnaCepic self-assigned this May 2, 2025
@AnaCepic AnaCepic requested review from cilim and nikajukic as code owners May 2, 2025 08:56

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
Copy link
Author

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

Copy link
Member

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
Copy link
Member

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants