Search notes:

git mv

Move or rename a file, a dirctory or a symlink.

fatal: bad source, source=path/to/*.…, destination=another/path/

When trying to use a wildcard in PowerShell to rename a set of files, git mv might throw a fatal: bad source, source=path/to/.…, destination=another/path/* error.
The following command is supposed to move all SQL files to a sub directory named db-objects:
PS> git mv  *.sql  db-objects
fatal: bad source, source=errors/*.sql, destination=db-objects/*.sql
This is because PowerShell does not expand wildcards by default.
The wildcard needs to be expanded explicitly:
Ps> git mv (get-childItem *.sql) db-objects
get-childItem can be abbreviated with its alias gci:
Ps> git mv (gci *.sql) db-objects

See also

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