Sometimes, I run a git pull
, and I’m excited to see that someone else has made some changes to the repo. I want to see what they are!
After I run git pull
, I see a summary of changes:
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (1/1), 300 bytes | 300.00 KiB/s, done.
From github.com:bminer/my_repo
abc1234..fed7890 master -> origin/master
Updating abc1234..fed7890
Fast-forward
.gitea/workflows/deploy.yaml | 10 +++++++++-
README.md | 4 ++++
envsetup.sh | 4 ++++
3 files changed, 17 insertions(+), 1 deletion(-)
You can then quickly copy paste that commit range into git diff
(show me a diff of all changes) or git show
(show me each changes from each commit):
$ git diff abc1234..fed7890
This maybe seems obvious, but it still feels like magic to me.