Skip to content

Handling default git branch names #61

@selectric401

Description

@selectric401

When setting up a new notebook and adding a remote, it may be useful to be able to specify the branch name as part of nb remote set, or to be able to set a default in the configuration somewhere. I've set up my local Git server to default to main instead of master, and GitHub has changed its default for new repositories too. This can be worked around with by running nb git branch -m master main after setting the remote, but a notebook-level or global-level configuration option would probably help as more Git repos default to main.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions