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

Rename 'master' branch to 'main' #10

Open
tgwoodcock opened this issue May 3, 2024 · 5 comments
Open

Rename 'master' branch to 'main' #10

tgwoodcock opened this issue May 3, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@tgwoodcock
Copy link
Owner

Current convention is to rename the old fashioned 'master' branch to 'main', to avoid any negative connotations with the term 'master'.

Renaming can be done easily on the central repo but any clones would also have to be updated later.

What do you think @marts?

@tgwoodcock tgwoodcock added the enhancement New feature or request label May 3, 2024
@tgwoodcock tgwoodcock self-assigned this May 3, 2024
@marts
Copy link
Collaborator

marts commented May 3, 2024

@tgwoodcock more than happy for you to rename the 'master' to 'main'. Go for it!

@tgwoodcock
Copy link
Owner Author

@marts great! I've pushed the new 'main' branch to github but I can't see the settings tab and so am not able to change the default branch from 'master' to 'main'. Could you please do that step? Instructions e.g. here

@marts
Copy link
Collaborator

marts commented May 7, 2024

Morning @tgwoodcock, thanks for adding the 'main' branch. I've set it as the default branch and reassigned the branch protection rules that 'master' had. Feel free to delete master if it all looks good to you.

@tgwoodcock
Copy link
Owner Author

Thanks @marts 👍 It looks good and I've deleted the old 'master' branch now.

@tgwoodcock
Copy link
Owner Author

Important info for hdf5view users

  • If you have cloned or forked the repository hdf5view in the past, please carry out the following steps in your local copy to make sure that you are tracking the new default branch 'main':
# Switch to the "master" branch:
$ git checkout master

# Rename it to "main":
$ git branch -m master main

# Get the latest commits (and branches!) from the remote:
$ git fetch

# Remove the existing tracking connection with "origin/master":
$ git branch --unset-upstream

# Create a new tracking connection with the new "origin/main" branch:
$ git branch -u origin/main
  • If you have installed hdf5view via pip, this does not apply and you can keep using the code as usual.

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

No branches or pull requests

2 participants