开发者

Git from China? [closed]

开发者 https://www.devze.com 2023-04-02 19:30 出处:网络
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing th
Closed. This question is opinion-based. It is not currently accepting answers.

Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.

Closed 4 years ago.

Improve this question

What's the best way to get Git to work from China? Heroku to be exact. My internet speed i开发者_运维技巧s decent, 8+mb download, 1mb upload. But even something like Git Pull will 'hang up unexpectedly'. Most websites load fine though.


Good. It seems you've crashed onto the Great Firewall (GFW for short) ;-)

When you mean most websites load fine, can you access twitter/facebook/youtube? If you see "connection reset by peer" then that's it.

Use a VPN or SSH tunnel to send your network traffic through the GFW is a common option to bypass censorship.

I myself setup my own homebrew ssh tunnel/VPN on linode VPS. There are many VPN service providers, one build by @yegle is pretty decent. One of my friends just setup a new site, you might want to have a look.


Using VPN is a good choice. I have using Shadowsocks for serval months. It works fine.


Haha this is a common problem for foreign folks all around here.

Yeah Shadowsocks is great, since VPN protocols can be easily detected by the authority (secret: some people are charged crime for this.)

Maybe you should setup a server in Hong Kong with Shadowsocks server configured. But one temporary solution is local mapping.

Modify your system hosts file and map the address 43.242.175.186 to the git server hostname.

Personally I’d prefer Alibaba Cloud.

0

精彩评论

暂无评论...
验证码 换一张
取 消