![]() Once you have those basics working you can then start thinking about adding a WWW interface. On your Mac (or any other machine on which you want to access that repository): git remote add origin push origin masterĪlternatively, use the server name rather than IP, and a different remote name: git remote add origin2 push origin2 master Now you can specify the repository created on the server as the remote repository for your local repository. Visit the official page of git downloads. This process is the simplest way to download the latest version of Git. ![]() ![]() We may install a newer version of Git using one of the following methods: Git Installer for Mac. Then on the Mac create a new repository: mkdir mylocalrepo Apple provides support for Git, but it lags by several major versions. Now create the bare repository: mkdir mygit You login to that server over SSH: ssh the key is set up correctly, you are now logged in (without providing username/password). That's it, then you can access that repository from your Mac.įor example, assume that the server name is and it's IP is 192.168.1.50. Login to the user account on the server create a bare Git repository.The objective is that when you are on your Mac you can SSH to the user account on the server without a username/password, just with the key. There are many tutorials online, just pick one. Set up a SSH key access to that account.Create a normal user account on the server (e.g.There is no difference in accessing a central Git repository on local and remote servers.
0 Comments
Leave a Reply. |