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
> direction.

$ git push REMOTE D:REMOTE_BRANCH

where
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 git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to