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

Error git push master but I have only a main branch #15

Open
e-marchand opened this issue Feb 22, 2025 · 1 comment
Open

Error git push master but I have only a main branch #15

e-marchand opened this issue Feb 22, 2025 · 1 comment

Comments

@e-marchand
Copy link
Contributor

Image

seems related to

This:C1470.execute("config --get --default master init.defaultBranch")

@e-marchand
Copy link
Contributor Author

someway to detect

git symbolic-ref refs/remotes/origin/HEAD
refs/remotes/origin/main or refs/remotes/origin/master

git remote show origin | grep "HEAD branch"

git branch -a | grep HEAD

and by default now use "main"

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

1 participant