Intermediate Git
George Boorman
Curriculum Manager, DataCamp
Everything is backed up
Collaboration, regardless of location
Repo copies on our local computer = local remotes
Making copies = cloning
git clone path-to-project-repo
git clone /home/george/repo
git clone /home/george/repo new_repo
Remote repos are generally stored in an online hosting service
If we have an account:
git clone URL
git clone https://github.com/datacamp/project
When cloning a repo
Git stores a remote tag in the new repo's configuration
List all remotes associated with the repo
git remote
datacamp
git remote -v
datacamp https://github.com/datacamp/project (fetch)
datacamp https://github.com/datacamp/project (pull)
origin
git remote add name URL
george
git remote add george https://github.com/george_datacamp/repo
Intermediate Git