Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default remote? #17

Open
sdat2 opened this issue Mar 26, 2022 · 0 comments
Open

Change default remote? #17

sdat2 opened this issue Mar 26, 2022 · 0 comments

Comments

@sdat2
Copy link
Member

sdat2 commented Mar 26, 2022

Hey, I was setting up a public repository on jasmin-sci3 today, but it wouldn't push to remote. It would just hang until it timed out.

The remote settings were initially:

(base) [sithom@sci3.jasmin.ac.uk MLBayesInfer]$ git remote -v
origin  git@github.com:sdat2/MLBayesInfer.git (fetch)
origin  git@github.com:sdat2/MLBayesInfer.git (push)

Using:

remote set-url origin https://github.com/sdat2/MLBayesInfer.git

I changed this to:

(base) [sithom@sci3.jasmin.ac.uk MLBayesInfer]$ git remote -v
origin  https://github.com/sdat2/MLBayesInfer.git (fetch)
origin  https://github.com/sdat2/MLBayesInfer.git (push)

It then it worked perfectly. Is there a reason to prefer the git@github.com: syntax? If not, it might be worth changing to https:.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant