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

Fix rule "i-want-to-create-a-new-remote-branch-from-current-local-one" #208

Merged
merged 2 commits into from
Feb 20, 2018

Conversation

erikmd
Copy link
Contributor

@erikmd erikmd commented Feb 20, 2018

Hi,
This is a bugfix for a recent change on a rule for which I had contributed to the review (see the commit messages for more details).
Best regards

These commands had been inserted in k88hudson#148 and (over)simplified in k88hudson#163.

The issue is that `git push <remote>` and `git push -u <remote>` will
typically raise the error below (unlike `git push <remote> HEAD`):

--8<---------------cut here---------------start------------->8---
fatal: The current branch new-branch has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin new-branch
--8<---------------cut here---------------end--------------->8---
@RichardLitt RichardLitt merged commit 4d42bb9 into k88hudson:master Feb 20, 2018
@RichardLitt
Copy link
Collaborator

Looks right to me. Thank you!

@erikmd erikmd deleted the fix-create-a-new-remote-branch branch February 21, 2018 00:49
aroup pushed a commit to aroup/git-flight-rules that referenced this pull request Jan 17, 2020
k88hudson#208)

* Add missing HEAD argument in 2 Git commands

These commands had been inserted in k88hudson#148 and (over)simplified in k88hudson#163.

The issue is that `git push <remote>` and `git push -u <remote>` will
typically raise the error below (unlike `git push <remote> HEAD`):

--8<---------------cut here---------------start------------->8---
fatal: The current branch new-branch has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin new-branch
--8<---------------cut here---------------end--------------->8---

* Add doc URL & Avoid triple backquotes
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

Successfully merging this pull request may close these issues.

2 participants