Skip to content

arunsrin

The truth shall make ye fret

  • Home
  • About
  • On Books
  • Tech Notes
  • Drawings

Day: September 27, 2019

git – Show/diff parents of a merge commit

git cat-file -p <commit>

or

git show --pretty=raw <commit>

Both these show similar information: the committer, the parent(s), commit text and so on.

Now that you have the two parents of a merged request (see above tip), you can see all files changed between its two parents with a command like this:

git diff --name-only <sha1> <sha2>
Posted on 27 Sep 201915 Apr 2019 by ArunPosted in linuxTagged git, snippets. Leave a comment

Tags

3ds alan moore asha bash blog books books-read-this-month browsers cisco cli comics coronavirus dc docker drawing emacs email english fsf gaming gears of war git go hardware home hosting india java k8s kids kindle links linux linux desktop marvel maths mobile monitoring movies nabokov networking nintendo note taking openssl pc gaming perl philosophy podcasts politics privacy productivity programming python quote red hat resident evil review rss science search security siddharth slackware snippets systemd vim vita web wfh xbox zelda

RSS Feed RSS - Posts

Archives

September 2019
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Aug   Oct »

Posts from my son's blog

  • LAMINE YAMAL
  • T-rex
  • bird
  • Horse of Liberty
  • avengers

Posts from my daughter's blog

  • 1:03 a.m.
  • Chess:- My top 1 hobby 😁
  • The books I read in 2024
  • My 2025 New Year Resolutions
  • Poems
Website Powered by WordPress.com.
  • Subscribe Subscribed
    arunsrin
    Join 32 other subscribers

    Have a WordPress.com account? Log in now.

  • arunsrin
    View site in Reader
    Manage subscriptionsSign upLog in
    Report this content
    Collapse this bar