About 70,500 results
Open links in new tab
  1. git - How can I see the differences between two branches

    Mar 23, 2012 · Use git diff. git diff [<options>] <commit>.. <commit> [--] [<path>… ] <commit> is a branch name, a commit hash, or a shorthand symbolic reference. Examples: git diff …

  2. How to read the output from git diff? - Stack Overflow

    Mar 27, 2010 · The man page for git-diff is rather long, and explains many cases which don't seem to be necessary for a beginner. For example: git diff origin/master

  3. git - How do I diff the same file between two different commits on …

    Jul 27, 2010 · In Git, how could I compare the same file between two different commits (not contiguous) on the same branch (master for example)? I'm searching for a compare feature …

  4. How to view file diff in git before commit - Stack Overflow

    Apr 6, 2012 · 24 To check for local differences: git diff myfile.txt or you can use a diff tool (in case you'd like to revert some changes): git difftool myfile.txt To use git difftool more efficiently, …

  5. git - Show diff between commits - Stack Overflow

    Try git diff k73ud^..dj374 to make sure to include all changes of k73ud in the resulting diff. git diff compares two endpoints (instead of a commit range). Since the OP wants to see the changes …

  6. diff: how to use '--ignore-matching-lines' option - Stack Overflow

    Aug 30, 2021 · That not how the -I option in diff works, see this Giles's comment on Unix.SE and also on the man page - 1.4 Suppressing Differences Whose Lines All Match a Regular …

  7. How do you take a git diff file, and apply it to a local branch that is ...

    Copy the diff file to the root of your repository, and then do: git apply yourcoworkers.diff More information about the apply command is available on its man page. By the way: A better way …

  8. Can somebody explain the usage of git range-diff?

    Sep 14, 2018 · Git version 2.19 introduces git range-diff which is supposed to be used in order to compare two commit ranges. I have been reading the documentation, but I cannot get what is …

  9. Git diff with line numbers (Git log with line numbers)

    Jun 27, 2014 · You can't get human-readable line numbers with git diff There aren't currently any options to get line-numbers displayed vertically on the side with git diff. Unified-diff format That …

  10. Exclude file from "git diff" - Stack Overflow

    I am trying to exclude a file (db/irrelevant.php) from a Git diff. I have tried putting a file in the db subdirectory called .gitattributes with the line irrelevant.php -diff and I have also tried