From the course: Git: Branches, Merges, and Remotes

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Add a remote repository

Add a remote repository

From the course: Git: Branches, Merges, and Remotes

Start my 1-month free trial

Add a remote repository

- [Instructor] Once you have an account with GitHub, and you've told GitHub to create a remote repository for you, then now we need to add information about that remote repository to our local repository. In the previous movie, we set up this explore_california repository on GitHub. And in the process it said, okay, we're all done with setting it up, on how you can proceed. is this one right here. Push an existing repository from the command line, because we already have an existing repository. And these are the commands we're going to be using. We're going to come back here in a moment. For now, let's just jump back our command line and we're already inside our project, it doesn't matter what branch you're on. We're going to test-type, git remote. And that will show us a list of the remotes that we have currently. It doesn't give us any, because we don't have any remotes. It works a lot like git branch does. Git branch shows us our branches, git remote shows us our remotes. Now let's…

Contents