command0
command0

Reputation: 17

how to store git personal authentication token (PAT) in Arch linux using command line

I'm facing issue to store the PAT token in my arch linux pc , for git to automatically fill them when I push my code . I've tried the commands

please help

Upvotes: 1

Views: 8455

Answers (1)

command0
command0

Reputation: 17

The command for git to configure it to store the PAT is -

git config --global credential.helper store

my command line was showing error because I accidentally run a wrong git config command which was causing the error so I had to clear all the unnecessary configs from my git config file by using the following command

git config --global --edit

and then delete all the unnecessary configs and run the

git config --global credential.helper store

command to store my username and PAT the next time git asks me for it It worked , I entered it one time and the next time it didn't ask me for the credentials , it just used the stored ones.

Upvotes: 1

Related Questions