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

Issues with temp remote #18

Open
reisandbeans opened this issue Aug 8, 2022 · 0 comments
Open

Issues with temp remote #18

reisandbeans opened this issue Aug 8, 2022 · 0 comments

Comments

@reisandbeans
Copy link

I was trying to use publish-to-git the following way

npx publish-to-git --tag v0.1.0 --force

and got the following error:

Command failed: git tag -f v0.1.0 tmp-7912hXj19g7JM1tP/master
fatal: Failed to resolve 'tmp-7912hXj19g7JM1tP/master' as a valid ref.

Upon inspection of the tmp repo that is created inside the tmp dir, I noticed that git creates a branch named main by default, not master anymore, which can be the cause of this issue. See this line.

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