zero icon indicating copy to clipboard operation
zero copied to clipboard

branch name in `doInitialCommit` function push command

Open gmlwo530 opened this issue 4 years ago • 1 comments

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"},
		},
}

gmlwo530 avatar Oct 17 '21 17:10 gmlwo530

We use main for all our repositories as well, thanks for noticing this oversight!

bmonkman avatar Oct 19 '21 18:10 bmonkman