{"id":719,"date":"2014-06-10T16:43:23","date_gmt":"2014-06-10T20:43:23","guid":{"rendered":"http:\/\/www.victorandreoni.com\/blog\/?p=719"},"modified":"2014-06-10T16:43:23","modified_gmt":"2014-06-10T20:43:23","slug":"generating-diffs-with-git","status":"publish","type":"post","link":"https:\/\/www.victorandreoni.com\/blog\/2014\/06\/10\/generating-diffs-with-git\/","title":{"rendered":"Generating Diffs with Git"},"content":{"rendered":"<p>Generating a diff from Git. In this case, the diff is generated between the current branch and a remote branch.<\/p>\n<p><code><br \/>\ngit diff --full-index origin\/branch<br \/>\n<\/code><\/p>\n<p>&nbsp;<\/p>\n<p>Example with remote branch called pp_project and saving the diff to the home directory<\/p>\n<p><code><br \/>\ngit diff --full-index origin\/pp_intern_project &gt; ~\/mypatch.patch<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Generating a diff from Git. In this case, the diff is generated between the current branch and a remote branch. git diff &#8211;full-index origin\/branch &nbsp; Example with remote branch called pp_project and saving the diff to the home directory git diff &#8211;full-index origin\/pp_intern_project &gt; ~\/mypatch.patch<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[311],"tags":[],"class_list":["post-719","post","type-post","status-publish","format-standard","hentry","category-git"],"_links":{"self":[{"href":"https:\/\/www.victorandreoni.com\/blog\/wp-json\/wp\/v2\/posts\/719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.victorandreoni.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.victorandreoni.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.victorandreoni.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.victorandreoni.com\/blog\/wp-json\/wp\/v2\/comments?post=719"}],"version-history":[{"count":1,"href":"https:\/\/www.victorandreoni.com\/blog\/wp-json\/wp\/v2\/posts\/719\/revisions"}],"predecessor-version":[{"id":720,"href":"https:\/\/www.victorandreoni.com\/blog\/wp-json\/wp\/v2\/posts\/719\/revisions\/720"}],"wp:attachment":[{"href":"https:\/\/www.victorandreoni.com\/blog\/wp-json\/wp\/v2\/media?parent=719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.victorandreoni.com\/blog\/wp-json\/wp\/v2\/categories?post=719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.victorandreoni.com\/blog\/wp-json\/wp\/v2\/tags?post=719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}