1. Home
  2. Git
  3. Git Tutorial
  4. Git – Add Remote Repository

Git – Add Remote Repository

In this chapter of Git Tutorial, You will learn how to add remote git repository in your local project directory. For example you are working on a project since many days, but still not added this project under Git. Now you have create a remote git repository and want to add your project under it.

Local Project Dir: /home/rahul/app1
Remote Git URL: git@remote.example.com:projects/app1.git

Add Remote Repository

Now navigate to your project directory and use git remote add command to connect local directory to remote repository.

Check Remote URL

To check remote url in local copy of code use following command. In results you will see two urls one for fetch and one for push operations.

Tags , ,
Was this article helpful to you? Yes 1 No