Set in your .bashrc
or .zshrc
file:
export username="git-hub-token"
Then run the command below to save your credentials
git remote set-url origin https://username:$username@github.com/username/repo-name.git
blog.masoko.net
08 Feb 2022 » linux
Set in your .bashrc
or .zshrc
file:
export username="git-hub-token"
Then run the command below to save your credentials
git remote set-url origin https://username:$username@github.com/username/repo-name.git