Every time I push to the remote Git repository, I have to re-input my username and password. Is there some way to avoid this by having MATLAB R2020b store this information?

5 views (last 30 days)
Dera All,
Every time I push to the remote Git repository, I have to re-input my username and password.
Is there some way to avoid this by having MATLAB R2020b store this information?
Best regards,
Ariyamehr

Answers (1)

Mario Malic
Mario Malic on 23 Oct 2020
Edited: Mario Malic on 23 Oct 2020
I am posting this as an answer, since we'll come to it, eventually.
  • Change your remote depository to use the SSH
!git remote set-url origin git@github.com:username/your-repository.git
If you go to Git settings on website, you'll see if your SSH key has been used.

Categories

Find more on Source Control Integration in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!