0

I am using my company stash account on my laptop. Sometime I develop my person project and I want to use my person Github account in those projects. I know how to use 2 different git remote servers by ssh keys from here

But I do not want to play around with ssh keys. Is it possible I use GIT with HTTPS with my personal github account ?

TonyParker
  • 2,024
  • 5
  • 18
  • 27
  • Possible duplicate of [Specify an SSH key for git push for a given domain](https://stackoverflow.com/questions/7927750/specify-an-ssh-key-for-git-push-for-a-given-domain) – Timothy Truckle Dec 27 '18 at 17:08
  • Not sure I understand the question here. Yes you can use https to clone you personal github account – jmoney Dec 28 '18 at 05:48

1 Answers1

2

Is it possible I use GIT with HTTPS with my personal github account ?

Yes: simply change the remote URL from SSH to https:

cd /path/mto/my/repo
git remote set-url origin https://github.com/<me>/myproject

Combine that with a credential helper to cache the credentials.
I would recommend the GCM (Git Credential Manager) like one for Mac/Linux.
That way, you won't have to enter your GitHub account password every time you push to your remote repository.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250