Search notes:

git diff

git diff show changes between
Show differences between two commits:
git diff 2a532db 5949ddb
Use --cached to compare staging area with repository. --staged is a synonym for --cached. Without --cached (or --staged), git diff compares working tree to repository:
git diff --cached
Show the difference between the last and second last commited version of a given file:
git diff HEAD~1 HEAD path/to/file.txt
Same thing, but more explicit
git diff HEAD~1 HEAD~0 path/to/file.txt
The following command shows the differences of a given file between its current local HEAD and the modified (uncommitted) changes to this file:
git diff HEAD path/to/file.txt
The diff between the original repository and the local HEAD(?):
git diff  master  origin/master

See also

git difftool
git commands
The shell command diff.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759391027, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/version-control-systems/git/commands/diff(72): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78