![]() Then check to see what you have on your server already: git remote -v Open Terminal or your command-line app of choice and navigate to your repo’s directory: cd ~/projects/reponame This is how you tell your Git server how you want to access it. This rigmarole needs to be done on each computer you intend to access your Git repo with for each repo you have that you want to access by SSH rather than by HTTPS. Here, I outline how to do it on Mac OS X, partly to remind myself how to do it in the future, partly to collate all the infomation on the internet about it and partly in the hope that someone else might find it useful. I seemed to spend a crazy amount of time trying to work out how to change access to a Git repository (repo) from HTTPS to SSH to avoid password prompts when pushing changes to BitBucket and GitHub. Add the private SSH key to your keychain. ![]() Add the public SSH key to your remote Git server.
0 Comments
Leave a Reply. |