All of lore.kernel.org
 help / color / mirror / Atom feed
* Can Git push only first parent history commits?
@ 2008-12-08  2:52 Li Frank
  2008-12-08  3:00 ` Junio C Hamano
  2008-12-08  4:03 ` Boyd Stephen Smith Jr.
  0 siblings, 2 replies; 5+ messages in thread
From: Li Frank @ 2008-12-08  2:52 UTC (permalink / raw)
  To: git

        The commit history is: 
        origin/master
              Commit1..Commit2..Commit3(T1 branch). 
         
        I want to combined Commit1, Commit2 and Commit3 to one commit_X
and push to origin master and keep old T1 branch history.  So I can't
use rebase.  T1 branch history will be lost after rebase. 
        So I create T2 branch at origin/master:
	
        origin/master
              Commit1..Commit2..Commit3(T1 branch). 
	  T2 (branch).

        Then I use "git merge --no-ff --log T1" merge T1 to T2.  
        So 
	  origin/master
              	+--Commit1..Commit2..Commit3(T1 branch). +

	
+----------------------------------------------------------------+--Comm
itX(T2 branch).

       But when I push T2 to origin master, Commit1 ,2, 3 also pushed.
I expect there are only CommitX at origin master branch. 
       How can I do?
 
best regards
Frank Li

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-12-08  7:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-08  2:52 Can Git push only first parent history commits? Li Frank
2008-12-08  3:00 ` Junio C Hamano
2008-12-08  3:11   ` Li Frank
2008-12-08  7:44     ` Matthieu Moy
2008-12-08  4:03 ` Boyd Stephen Smith Jr.

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.