Git Kata 6: Remote Repositories

Learn how to create and add remote repositories and push commits to the repository.

The Git katas have, thus far, worked with a local repository. Git has a rich feature set that allows repositories to send and retrieve commits to and from each other, sharing the entire commit history of one repository with an infinite number of other repositories. This kata will demonstrate the steps necessary to connect a local repository to a remote repository.

Step 1: Initialize a new repository

The command to change the directory and list all the files is given below.

Get hands-on with 1200+ tech skills courses.