On Mon, 31 Jan 2011 18:07:07 +0000
Roddie Grant <gitl...@myword.co.uk> wrote:
> I have a repository with commits
> A B C D E
> and a remote repository with commits
> A B C previously pushed and merged.
> Now I want to push D to the remote, but not E.
> I can see various possible ways this might work, but I can't afford
> to get it wrong, so I'd be grateful for a nudge in the right
$ git push REMOTE D:REMOTE_BRANCH
REMOTE is the name of the remote repository,
D is SHA-1 (or another name) of the specific commit you want to push,
REMOTE_BRANCH is the branch you want to update.
And you can always re-create the situation at hand locally and try it
out as the "remote repo" does not have to be physically remote -- it
can be a local directory as well, e.g.
$ git remote add foo ~/devel/foo.git
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at