Search⌘ K
AI Features

Create a Remote Repository

Explore how to create remote Git repositories both on the same system and over SSH. Understand the purpose of bare repositories and steps to set up remote repositories for team collaboration using Git.

A remote repository is a bare Git folder. It isn’t necessarily on a remote server. It can be somewhere in the same system.

Remote repository on the same system

In this example, we create a remote folder in the same system. Choose a place that’s not part of the current project folder.

$ mkdir -p New_Folder
$ cd New_Folder

Now, we’ll make a Git repository and make an initial commit in it:

 ...