How to make git work to push commits to GitHub via tor?

后端 未结 5 1575
走了就别回头了
走了就别回头了 2020-12-14 17:22

So, GitHub is now officially banned by Russian Government and Rospotrebnadzor. I used GitHub to create free software and share it, and it\'s important part of my life.

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-14 17:57

    You could switch from httpsto sshand use the tor SOCKS proxy in this way:

    export SOCKS_SERVER=localhost:9050
    git clone ssh://github.com/user/repo
    

    Note that you need credentials when using ssh!

提交回复
热议问题