Skip to content

Default branch is sometimes main instead of master #1124

@SC-Samir

Description

@SC-Samir

Hello 👋

The instructions on the CLI mention pushing to the master branch, but in my case, I had to use main for it to work correctly (because I have a new version of git)

Specifically, here's the line in question from the CLI code:

fmt.Printf("App '%s' has been created\n", app.Name)

It will be useful to get the default branch using the git library and display it instead of always displaying master.

go-git/go-git#510
https://stackoverflow.com/a/50056710

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions