[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Git question: specify branches to push
From: |
Lee Duhem |
Subject: |
Re: Git question: specify branches to push |
Date: |
Thu, 27 Nov 2014 18:59:13 +0800 |
On Thu, Nov 27, 2014 at 6:27 PM, Stephen Berman <address@hidden> wrote:
> I've pushed several commits to emacs-24 at Savannah, and each time git
> says the following:
>
> ! [rejected] master -> master (non-fast-forward)
> error: failed to push some refs to 'address@hidden:/srv/git/emacs.git'
> hint: Updates were rejected because a pushed branch tip is behind its remote
> hint: counterpart. If you did not intend to push that branch, you may want to
> hint: specify branches to push or set the 'push.default' configuration
> variable
> hint: to 'simple', 'current' or 'upstream' to push only the current branch.
>
> Of course I didn't want to push master so it's good it was rejected, but
> it would be unpleasant if my master branch happens to be up to date when
> I push emacs-24 (or vice versa). But how do I tell git to push only
> emacs-24 (or only master)?
git push origin emacs-24
should work.
Sincerely,
lee
- Git question: specify branches to push, Stephen Berman, 2014/11/27
- Re: Git question: specify branches to push, Lars Magne Ingebrigtsen, 2014/11/27
- Re: Git question: specify branches to push, Stephen Berman, 2014/11/27
- Re: Git question: specify branches to push, Eli Zaretskii, 2014/11/27
- Re: Git question: specify branches to push, Lars Magne Ingebrigtsen, 2014/11/27
- Re: Git question: specify branches to push, Eli Zaretskii, 2014/11/27
- Re: Git question: specify branches to push, David Engster, 2014/11/27
- Re: Git question: specify branches to push, Eli Zaretskii, 2014/11/27
- Re: Git question: specify branches to push, Stephen Berman, 2014/11/27
- Re: Git question: specify branches to push, Andreas Schwab, 2014/11/27
Re: Git question: specify branches to push,
Lee Duhem <=
Re: Git question: specify branches to push, Phillip Lord, 2014/11/28