Search notes:

git stash

Stash the changes in a dirty working directory away.
git  init --quiet repo
cd   repo

'foo 1
foo 2
foo 3
foo 4
foo 5
'       > foo.txt

'bar 1
bar 2
bar 3
bar 4
bar 5
'        > bar.txt

git add *
git commit --quiet -m 'add file.foo, file.bar'
Github repository about-git, path: /commands/stash/intro/init.ps1
sed -i 's/bar 2/bar two/'   bar.txt
git commit --quiet . -m "change line 2 in bar.txt"
Github repository about-git, path: /commands/stash/intro/change-bar-2.ps1
'foo 6
'           >> foo.txt
Github repository about-git, path: /commands/stash/intro/add-foo-6.ps1
git stash
Github repository about-git, path: /commands/stash/intro/stash.ps1
sed -i 's/bar 5/bar five/'  bar.txt
git commit --quiet . -m "Urgent fix in bar.txt"
Github repository about-git, path: /commands/stash/intro/change-bar-5.ps1
git stash pop
Github repository about-git, path: /commands/stash/intro/stash-pop.ps1
git commit . --quiet -m "add foo 6"
Github repository about-git, path: /commands/stash/intro/commit-add-6.ps1

See also

.git/logs/refs/stash
git commands

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...', 1759391603, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/version-control-systems/git/commands/stash(95): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78