-
-
Notifications
You must be signed in to change notification settings - Fork 932
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
Creating a new branch or renaming the default branch #960
Comments
Thank you for the suggestion. That part of the lesson is already in an individual repository. "Next, we will change the default branch to be called main." is in relation to the repository just created, so the default branch is now
do you have a suggestion to make it clearer? |
The lesson says:
The instructions in this particular lesson do not do anything to change the name of the default branch. Knowing that the default branch is likely already called |
Since there are no commits on I appreciate your suggestion to change the text to say we'll check the branch name; feel free to provide example text here if you want to workshop this, or submit a PR. Also, I recognize that you have elevated privileges in the Carpentries repositories, but please submit PRs from your own forked repo instead of creating new branches in this lesson's repository. Unless there is a new workflow that I'm unaware of? @ErinBecker ?? |
There is a proposal in #983 to remove this command from here. The setup suggests to change the default to main, and new git installations should have main as default anyway, so this is unnecessarily confusing for the learners at this stage imho. |
Closed via #1011. |
How could the content be improved?
In the Creating a Repository episode we say we are going to rename the default branch. However, command below (
git checkout -b main
) only creates a new branch calledmain
; it does not change the default. It's not clear here that you must follow the instructions in the linked git setup lesson to change the default branch name.Which part of the content does your suggestion apply to?
https://swcarpentry.github.io/git-novice/03-create.html
The text was updated successfully, but these errors were encountered: