Search notes:

Git: Cloning a repository with the Personal Access Token in the URL

When cloning a repository from a Git server that requires a Personal Access Token (PAT) for authentication (such as for example github), the PAT can be included in the URL:
$ git clone https://ghp_ThisIsThePersonalAccessTokenxxxxxxxx@github.com/username/reponame
When doing that, the PAT will then be stored in the repository's config file .git/config (see this link). This might or might not be what the user intended.
However the case, it allows the to push, pull or fetch without involving a credential helper.

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...', 1745912166, '3.12.107.192', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/version-control-systems/git/commands/clone/include-personal-access-token-in-URL(38): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78