Git demande le login/mdp (token)

2026-01-08

# git pull
Username for 'https://githostname.example.com': gitlogin
Password for 'https://gitlogin@githostname.example.com':

Dans le ~/.gitconfig

[credential "https://githostname.example.com"]
        username = gitlogin
        helper = "!f() { test \"$1\" = get && echo \"password=$(cat $HOME/.secret)\"; }; f"

Dans le ~/.secret (permission 0600),

Copier le personal access token en clair

Source: https://git-scm.com/docs/gitcredentials