Skip to content

branch name in doInitialCommit function push command #424

@gmlwo530

Description

@gmlwo530

I am using initial branch name to main. And, i set this name in git configure file(ex. ~/.gitconfig on macos).

So, i think that command of doInitialCommit should be changed.

It would be nice to change it to use the name returned by the init.defaultBranch.

commands := []initialCommands{
		...
		{
			description: "git push -u origin master",
			command:     "git",
			args:        []string{"push", "-u", "origin", "master"},
		},
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions