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.
You could switch from httpsto sshand use the tor SOCKS proxy in this way:
https
ssh
SOCKS
export SOCKS_SERVER=localhost:9050 git clone ssh://github.com/user/repo
Note that you need credentials when using ssh!