Avoid writing out latest commit hash when doing `git diff` after a merge

Avoid writing out latest commit hash when doing `git diff` after a merge

In a situation where I merged the latest commits from master into my working branch, I understand that I can check the git diff of any file staged for commit by simply running git diff <hash> <file> (or the first distinctive hexa chars for it). But… can someone tell me if there is an option, to, by default, obtain the same behaviour, without having to go and look for these hash characters? (SVN looks for the latest release by default).

In a situation where I merged the latest commits from master into my working branch, I understand that I can check the git diff of any file staged for commit by simply running git diff <hash> <file> (or the first distinctive hexa chars for it). But… can someone tell me if there is an option, to, by default, obtain the same behaviour, without having to go and look for these hash characters? (SVN looks for the latest release by default).

My intuition is that, since the latest commit hash is known by Git, somehow Git could just use that latest commit hash by default, or is it too much to ask of it? It is a pain to go and fish out for this hash… and not my job! It should be the computer’s.

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Git It? How to use Git and Github

Learn how to use Git and Github 🐙🐱 Contributing to open-source is satisfying on many levels. Not only does it validate your skills for recruiters, but it leads to higher quality software that empowers developers to build better products. But submitting your first pull request on GitHub can be intimidating. The goal of this guide is to give you a clear set of steps for contributing any OS project

Git Tutorial For Beginners - Git Full Course

In this Git tutorial for beginners will help you learn about the most popular source code management tool used in DevOps. First, you will understand what DevOps is with the help of a short animated video. Then, you will see an introduction to DevOps. You will understand how to install Git on windows, followed by Git Tutorial, along with the hands-on demo. You will get an idea about the various Git commands used for the project files. Finally, you will get learn some of the most important Git interview questions that you might face in any DevOps interview