Thursday, 19 November 2020

Linking local repository to remote repository

If you not linked to remote repository then you can do it easily by following these steps

1. copy the link of the remote repository. 

2. put the repository URL  at the place of repository URL  in the command below in CMD

$ git remote add origin remote repository URL

# Sets the new remote

then type the below command too

$ git remote -v

# Verifies the new remote URL

now, you can work on your local repository and can make commits and push on the remote repository  

No comments:

Post a Comment