Top "Git-diff" questions

Shows changes between the working tree and the committed contents of a git repository, or between two commits or branches of the repository.

(git) diff output relative path?

I need to get some diffs in my repo that are not relative to the base of the repo, but …

git diff patch git-diff difference
GIT - How to list only newly added files between two branches

how can I list newly created(added) files between two branches? I can list all files that have been changed …

git git-diff
How to make git diff show the same result as github's pull request diff?

After branches are merged, and GitHub no longer show difference when I try to make a pull request, but git …

git github git-diff
Differences between the staged and unstaged versions of the same file, using difftool

Is there a way of viewing the differences between the staged and unstaged versions of the same file? For example: …

git diff git-diff difftool git-stage
Can Git really track the movement of a single function from 1 file to another? If so, how?

Several times, I have come across the statement that, if you move a single function from one file to another …

git git-diff git-log
Always use the pager for git diff

I'm using less as my git pager. If the git diff output is readable on one page, my git prints …

git git-diff git-config
Examples of different results produced by the standard (Myers), minimal, patience and histogram diff algorithms

Git offers these 4 diff algorithms, but without any further information what are their differences. What are the advantages of each …

diff git-diff
Using Git diff to detect code movement + How to use diff options

Consider that a file (1.c) contains three functions and changes made by authors M and J. If someone runs git …

git git-diff
git-diff: Only show changes staged for committing

I want to see diff on files that I've added to commit (git add something). I can do this: git …

git git-diff
git diff with combined --word-diff

Given a file with a single word changed, a "normal" git diff looks like this: Whereas a git diff --word-diff=…

git git-diff