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

git topic-move doesn't update upstream branch name #109

Closed
GreenEnergyBeam opened this issue Mar 5, 2024 · 4 comments
Closed

git topic-move doesn't update upstream branch name #109

GreenEnergyBeam opened this issue Mar 5, 2024 · 4 comments

Comments

@GreenEnergyBeam
Copy link

I used git topic-begin chore-cleanup followed by topic-move chore-dbcontext and then git push I got:

fatal: The upstream branch of your current branch does not match
the name of your current branch.  To push to the upstream branch
on the remote, use

    git push origin HEAD:chore-cleanup

To push to the branch of the same name on the remote, use

    git push origin HEAD

To choose either option permanently, see push.default in 'git help config'.

To avoid automatically configuring an upstream branch when its name
won't match the local branch, see option 'simple' of branch.autoSetupMerge
in 'git help config'.

This makes me think the upstream didn't get renamed. Is it supposed to do so?

@phdru
Copy link
Contributor

phdru commented Mar 5, 2024

IMO topic-move should do git push -u at the last line.

PS. And all topic-* aliases should join lines with &&, not just ; semicolon. But that's a different story. I just looked at them for the 1st time.

@joelparkerhenderson
Copy link
Member

Yes good ideas both of you. Want to do a pull request?

@phdru
Copy link
Contributor

phdru commented Mar 15, 2024

#110. Many small fixes. The last commit 007b295 adds --set-upstream, that should fix the problem above.

@joelparkerhenderson
Copy link
Member

Perfect, thank you so much. I just merged it.

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

3 participants