https rewrite to ssh git config --global --unset url.ssh://git@orgname.ghe.com/.insteadof && git config --global url."ssh://orgname@orgname.ghe.com/".insteadOf "https://orgname.ghe.com/" how to restore with git, to good known version. create a branch from latest good known working version and re-merge to the master.