Regarding code formatting I’m kind of purist :). I very often remove unnecessary white spaces (lines with only ws, ws at the end of lines etc). I even have...
In HEAD (the latest commit), I have a file named foo. In my current working tree, I renamed it to bar, and also edited it. I want to git...
I have a large file A (consisting of emails), one line for each mail. I also have another file B that contains another set of mails. Which command would...
There are two files called “a.txt” and “b.txt” both have a list of words. Now I want to check which words are extra in “a.txt” and are not in...
I have a series of text files for which I’d like to know the lines in common rather than the lines which are different between them. Command line Unix...
How can I get the difference between two images? I have the original image. Someone has written on an exact duplicate of the original image. Now, I need to...
This answer is great for seeing a visual diff between two files that are checked into git: How do I view ‘git diff’ output with a visual diff program?...
I’ve read through a few questions regarding file permissions in Git and I’m still a bit confused. I’ve got a repo on GitHub forked from another. Post merge, they...
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question...
How does the patience algorithm differ from the default git diff algorithm, and when would I want to use it? 3 Answers 3