

The next sections will explain some typical setups using those protocols and how to get your server running with them. The first section of this chapter will cover the available protocols and the pros and cons of each. Running a Git server is fairly straightforward.įirst, you choose which protocols you want your server to support. Therefore, the preferred method for collaborating with someone is to set up an intermediate repository that you both have access to, and push to and pull from that. However, in order to do any collaboration in Git, you’ll need to have a remote Git repository.Īlthough you can technically push changes to and pull changes from individuals' repositories, doing so is discouraged because you can fairly easily confuse what they’re working on if you’re not careful.įurthermore, you want your collaborators to be able to access the repository even if your computer is offline - having a more reliable common repository is often useful. At this point, you should be able to do most of the day-to-day tasks for which you’ll be using Git.
