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

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

Tags

3ds asha bash blog books books-read-this-month browsers cli comics coronavirus docker drawing emacs email english gaming gears of war git hosting india java kids links linux linux desktop marvel maths movies networking nintendo openssl pc gaming philosophy privacy productivity programming python quote red hat review rss science security siddharth slackware snippets systemd web xbox zelda
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