Skip to content
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

docs: Improve custom branch clarity #761

Merged
merged 1 commit into from
Jun 14, 2022

Conversation

SpicyRicecaker
Copy link
Contributor

By default, I run git push origin master instead of git push origin main when first creating a repository, so I didn't realize why my deploy step was being skipped, until I realized that refs/heads/main should also be changed to refs/heads/master when changing the default branch.

Below, I added 3 lines of comments explaining to the user that they should also modify the refs/heads/... portion of the code when changing the default branch

I think that this change would help people that are copy pasting the code to try to get the example to work, so they know what values to change when modifying their branch.

By default, I run `git push origin master` instead of `git push origin main` when first creating a repository, so I didn't realize why my deploy step was being skipped, until I realized that `refs/heads/main` should also be changed to `refs/heads/master` when changing the default branch. 

Below, I added 3 lines of comments explaining to the user that they should also modify the `refs/heads/...` portion of the code when changing the default branch 

I think that this change would help people that are copy pasting the code to try to get the example to work, so they know what values to change when modifying their branch.
Copy link
Owner

@peaceiris peaceiris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

@peaceiris peaceiris changed the title Improve custom branch clarity in README.md docs: Improve custom branch clarity Jun 14, 2022
@peaceiris peaceiris merged commit da72d05 into peaceiris:main Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants