blog.masoko.net

Set git origin to remember credentials

2022-02-08 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:[email protected]/username/repo-name.git