Generating Diffs with Git

June 10, 2014

Git

Generating a diff from Git. In this case, the diff is generated between the current branch and a remote branch.


git diff --full-index origin/branch

 

Example with remote branch called pp_project and saving the diff to the home directory


git diff --full-index origin/pp_intern_project > ~/mypatch.patch

No comments yet.

Leave a Reply

You must be logged in to post a comment.