----- Original Message ----- 
  From: Valencia 
  To: git-users@googlegroups.com 
  Sent: Wednesday, April 29, 2015 5:50 AM
  Subject: [git-users] How to do a selective push

  Say I have done 10 commits and I want to push only the 2nd and the 8th 
commit. How to do this?
Can you describe what you think you will get. 

Do you mean just the changes that #2 and #8 introduced (thus dropping the 
changes in #1, #3..#7, #9 & #10). ['git rebase -i', and remove the offending 

Or do you mean you want the graph to simply missout #1, #3..#7, #9 & #10, but 
keep the snapshot of #2 & #8? ['git rebase -i', and squash the ones you want 

It's worth creating a duplicate branch [which only costs ~40 bytes] for 
testing, and then reviewing the many and various tutorials on --interactive 

The key is to be clear about what you want, what you expect, and how Git 
actually works (as opposed to te many explanations that try to describe it as 
if it is 'change management', rather than 'snapshot management')


You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to