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.

Comparing two branches in Git?

I have two branches, branch_1 and branch_2. How can I see the differences between the two branches in Git?

git git-diff
How to see the changes in a Git commit?

When I do git diff COMMIT I see the changes between that commit and HEAD (as far as I know), …

git version-control diff git-diff
Viewing unpushed Git commits

How can I view any local commits I've made, that haven't yet been pushed to the remote repository? Occasionally, git …

git git-diff git-log
How do I show the changes which have been staged?

I staged a few changes to be committed; how can I see the diff of all files which are staged …

git diff dvcs git-diff git-stage
How to compare files from two different branches?

I have a script that works fine in one branch and is broken in another. I want to look at …

git git-diff
How do I diff the same file between two different commits on the same branch?

In Git, how could I compare the same file between two different commits (not contiguous) on the same branch (master …

git git-diff
How to list only the file names that changed between two commits?

I have a bunch of commits in the repo. I want to see a list of files changed between two …

git git-diff git-show
Showing which files have changed between two revisions

I want to merge two branches that have been separated for a while and wanted to know which files have …

git branch git-branch git-diff
How to view file diff in git before commit

This often happens to me: I'm working on a couple related changes at the same time over the course of …

git git-diff
How to exit git log or git diff

I'm trying to learn Git with the help of Git Immersion. There's one thing that frustrates me whenever I use …

git git-diff git-log