sudo apt install libsecret-1-0 libsecret-1-dev
cd /usr/share/doc/git/contrib/credential/libsecret
sudo make
git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
When you git clone
, git fetch
, git pull
, or git push
to a remote repository using HTTPS URLs on the command line, Git will ask for your GitHub username and password. When Git prompts you for your password, enter your personal access token (PAT).
Create a PAT here or at Settings > Developer settings > Personal access tokens
Luego, que el ~/.gitconfig
quede asi:
[credential]
helper = /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
[user]
email = [email protected]
name = J.P. Filevich
[init]
defaultBranch = main