So one day I get unknown revision
error after running go get
command from private repo
The easiest solution is to just add alias to force to use ssh (so credential will use our underlying ~/.ssh)
[url "ssh://[email protected]:2222/"]
insteadOf = https://theprivaterepo.com/
Some recomend to use .netrc
or use git credential provider
اريد هذا الملف جاهز