Skip to main content
14 events
when toggle format what by license comment
Dec 7, 2022 at 22:29 comment added Francisco git diff old.txt new.txt did the trick. Incredible tool. Thanks
Mar 18, 2021 at 21:37 comment added David Moles git diff also has different command-line flags and different behavior, e.g. git diff <dir1> <dir2> diffs two directories recursively, while diff <dir1> <dir2> is not recursive and requires the -r flag (which git diff doesn't have) for a recursive diff. I'm not convinced aliasing is such a hot idea.
Nov 20, 2020 at 4:07 comment added matvore git diff does not work if both files happen to be in the same repository and currently checked-out.
Jan 29, 2018 at 20:19 history edited jnovack CC BY-SA 3.0
updated comment to include image for `git diff`.
Jan 24, 2018 at 15:49 comment added Piotr Findeisen git diff doesn't work for e.g. pipes
Nov 23, 2016 at 8:04 comment added LarsR This doesn't work for me... echo one > foo; echo two > bar; git diff foo bar produces no output, while diff foo bar produces 1c1 < one --- > two (with proper formatting, of course)
Apr 23, 2015 at 23:13 comment added Anton Chikin 'git diff' does not work on generic files so aliasing diff to be 'git diff' can be harmful
Feb 7, 2015 at 18:26 comment added Lucio Paiva git diff should be at the top of your answer! +1 for pointing out that it works even outside of a repository.
Feb 4, 2015 at 19:33 comment added chrismarx yay for git diff
S Nov 23, 2014 at 21:20 history suggested 0xcaff CC BY-SA 3.0
fix allias
Nov 23, 2014 at 20:33 review Suggested edits
S Nov 23, 2014 at 21:20
Apr 5, 2013 at 14:41 vote accept miphe
Apr 5, 2013 at 13:38 history edited jnovack CC BY-SA 3.0
added 156 characters in body
Apr 5, 2013 at 13:32 history answered jnovack CC BY-SA 3.0