How to cache your Personal Access Token (PAT) in Linux environment
Published in
Feb 14, 2021
First, run the below to enable configuration,
git config — global credential.helper store
then you have to commit once and let git prompt for credentials once,
$vim README.md
$git add .
$git commit -m “edit read me 3”
$git push//you will be prompted to enter your git name and password as usual
now, make another commit, you will no longer be prompted for credentials,
$ git commit -m “edit read me 4”
[main 6315d6f] edit read me 4
1 file changed, 1 insertion(+)$ git push
Counting objects: 3, done.
Delta compression using up to 6 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 286 bytes | 286.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To https://github.com/whoissqr/meApp
1d84d79..6315d6f main -> main