[Privoxy-devel] git: how2 show diff for one specific change?
Brian Mahaffy
bmahaffy at cradlepoint.com
Sat Mar 10 20:46:32 UTC 2018
On Mar 9, 2018, at 22:07 PM, Lee <ler762 at gmail.com<mailto:ler762 at gmail.com>> wrote:
That was very helpful -- thank you!!
On 3/9/18, Brian Mahaffy <bmahaffy at cradlepoint.com<mailto:bmahaffy at cradlepoint.com>> wrote:
You can get a diff of the specific changes from a particular SHA with the
following command. Lets use SHA 12345678 in the example.
and you find the SHA using some variation on 'git log' or are there
other commands?
(I haven't used git before, so I know zip about it)
I tend to use this alias of log to find SHA’s (again, something to put in your ~/.gitconfig). You’d use it with “git lola [reference’ish things]”. Just git lola by itself will show you a textual branch tree. If you put a file name behind it, it will show you the tree of that file. Play with it and try things like branch’s, tags, etc. to see how it behaves.
[alias]
lola = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen (%cr) %C(blue)<%an>%Creset’ --abbrev-commit --all
Of course lots of various git commands will also put out SHAs as part of their function too.
I started with
https://www.kernel.org/pub/software/scm/git/docs/gittutorial.html
which seems a bit easier for a total noob
Which is another good place to start. Git can be a bit overwhelming at first, but if you stick to the simple parts first and learn them well, it’s not too bad.
Thanks
YW!
…Brian
More information about the Privoxy-devel
mailing list