git config http.proxy socks5://localhost:9150 # 9150 for TOR browser, 9050 for TOR service
git config https.proxy socks5://localhost:9150
^ affects the current repository.
git config --global if you want it to apply to all repositories, including one you haven't yet cloned.
When cloning a large repository, such as haveno, you then run into the problem that git doesn't retry when the other end hangs up, which it often does over a slow tor connection.
until git clone https://github.com/retoaccess1/haveno-reto ; do true ; done
will retry until it finally succeeds.
You can create and log into a github account using Tor Browser, just be sure to never use that account without tor browser. If you actually want to contribute using that account, you will need to email github customer service and have them un-shadowban you first.