Reputation: 63
Got remote repositories on Bitbucket and Github, the issue is the same on both.
I do a git pull
but it times out and returns:
ssh: connect to host bitbucket.org port 22: Operation timed out
fatal: Could not read from remote repository.
I just moved to our new office, and I have the feeling this might have something to do with the net perhaps, as it worked perfectly from home last night.
Any ideas on what the next step should be? I can access our own router, but the general internet is shared across the building we are located in.
Upvotes: 1
Views: 1153
Reputation: 1323733
If ssh is somehow blocked, you can test with an https url:
cd /your/repo
git remote set-url origin https://[email protected]/YourLogin/YourRepo
git fetch
You will have to enter your GitHub account password.
Upvotes: 1