From: Sreepathi Prasanna 
  Sent: Saturday, August 02, 2014 8:14 PM
  Subject: [git-users] Question about git diff


  I'm new to Git source control. I generated a patch using git diff > patch 
command, on one of the projects and submitted it to open source for review. 

  The automated tool which grabs the patches and runs the basic test cases 
against the patch, complained. I don't understand what i'm doing wrong here.

  -1 Patch failed to apply to head of branch

Try using 'git format-patch' and the 'git send-email' if it's to be emailed. 

The regular 'diff' isn't the same as a git-diff, and for patches to apply there 
are a few extra parameters that are needed to make it work (but I use the above 

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 
For more options, visit

Reply via email to