You can do:
git diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 HEAD
4b825dc642cb6eb9a060e54bf8d69288fbee4904
is the id of the “empty tree” in Git and it’s always available in every repository.
More Related Contents:
- How can I see the changes in a Git commit?
- Ignore files that have already been committed to a Git repository [duplicate]
- How do I show the changes which have been staged?
- Viewing unpushed Git commits
- How to compare files from two different branches
- How to list branches that contain a given commit?
- Which commit has this blob?
- What are the differences between double-dot “..” and triple-dot “…” in Git diff commit ranges? [duplicate]
- What is a tracking branch?
- What is the difference between “git init” and “git init –bare”?
- I ran into a merge conflict. How do I abort the merge?
- What are .git/info/grafts for?
- How can I get the diff between all the commits that occurred between two dates with Git?
- How do I get my ‘Detached HEAD’ commits back into master [duplicate]
- Get changes from master into branch in Git
- Getting the difference between two repositories
- How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?
- git diff between cloned and original remote repository
- git: switch branch without detaching head
- How to “git show” the diffs for a merge commit?
- How do I reset or revert a file to a specific revision?
- Is there a migration tool from CVS to Git?
- Ignore *all* whitespace changes with git-diff between commits
- Differences between git pull origin master & git pull origin/master
- Ignoring an already checked-in directory’s contents?
- Git Ignores and Maven targets
- How to exit git log or git diff [duplicate]
- Is there a way to compare two diffs or patches?
- Clone only the .git directory of a git repo
- Other consequences of `git push –force`?