profile for joel goldstick at Stack Overflow, Q&A for professional and enthusiast programmers

JoelGoldstick.com

Remote Repositories

Categories: git

Published on April 19, 2016

Last Modified on April 26, 2016

Git is a distributed version control system. So, if you are working with others on a project you will need to sync your various versions. Even if you are working alone on a project, you will likely want to keep a copy on github (or bitbucket) or your company server, so that you can get fresh copy no matter what computer you are working on. I have a desktop machine at home, and a netbook I take when I'm out, and various machines at work that I access.

As an example:

(git_course)jcg@jcg-netbook:~/code/venvs/git_course$ git remote -v
origin  https://github.com/jgoldstick/git_course.git (fetch)
origin  https://github.com/jgoldstick/git_course.git (push)
(git_course)jcg@jcg-netbook:~/code/venvs/git_course$

Besides my local repository, I have a repository on github that contains an identical copy of my local repository. Actually, they were identical at the time when I last pushed my local repository to github.