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

branch name in doInitialCommit function push command #424

Open
gmlwo530 opened this issue Oct 17, 2021 · 1 comment
Open

branch name in doInitialCommit function push command #424

gmlwo530 opened this issue Oct 17, 2021 · 1 comment

Comments

@gmlwo530
Copy link
Contributor

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"},
		},
}
@bmonkman
Copy link
Contributor

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

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

No branches or pull requests

2 participants