Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Git Basics Working With Remote Repositories Cloning

ayyanababu kopparthi
ayyanababu kopparthi
4,022 Points

Adding communication between RemoteGit repository and cloned Repository

Problem:

I had a project in github.com/username/sampleproject . I cloned this project to my local repository using

git clone https://github.com/username/sampleproject "My own local repositry name"

upto this its fine. when I do command: git remote -v it shows the origin and remote repository as origin https://github.com/username/sampleproject (fetch) origin https://github.com/username/sampleproject (push)

Now how to make a communication between the local clone repository and remote repository which was in github.com using

github remote add

1 Answer

Hi there,

It is always confusing to explain git. But this link is very helpful and easy to understand :) https://www.atlassian.com/git/tutorials/syncing/git-fetch