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

Clarification on Main and Master Branch Naming Conventions #7

Open
sarthakvermaa opened this issue Mar 18, 2024 · 0 comments
Open

Clarification on Main and Master Branch Naming Conventions #7

sarthakvermaa opened this issue Mar 18, 2024 · 0 comments

Comments

@sarthakvermaa
Copy link
Contributor

Question:

Some repositories on GitHub have a main branch as their default, while others have a master branch. Can you explain under which circumstances Git/GitHub creates "main" as the main branch and when it creates "master" as the main branch?

Steps Taken:

  1. Created a new branch named "initial-branch" from the initial commit using its SHA key.
  2. Answered the provided question in the username.md file, explaining the creation of "main" and "master" branches in GitHub repositories.
  3. Committed the changes to the "initial-branch."
  4. Created a Pull Request from "initial-branch" to "sample-branch" for review and integration.

Condition: You must use the SHA key of the initial commit in any one of the git commands that you will use to complete this task. PR which will be unable to fulfill the condition can be rejected. If your username.md file is not there, then you have to make a new one. Make sure to add the commands you used in the PR description. Failing to do so, Your PR won't be merged.

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

No branches or pull requests

1 participant