Up to this point, you've worked with Git exclusively on your local machine. However, the utility of Git significantly expands when collaborating with others or backing up your work on a separate server. This chapter introduces remote repositories: versions of your project hosted elsewhere, typically on the internet or a network.
You will learn the commands necessary to interact with these remotes. This includes configuring connections (git remote add
, git remote -v
), obtaining a complete copy of a remote project (git clone
), uploading your local commits (git push
), and integrating changes made by others into your local repository (git fetch
, git pull
). We will also touch upon popular hosting services like GitHub, GitLab, and Bitbucket, and standard remote naming conventions like origin. Understanding these remote operations is fundamental for collaborative software development and sharing your projects.
5.1 Introduction to Remote Repositories
5.2 Common Hosting Platforms (GitHub, GitLab, Bitbucket)
5.3 Adding a Remote Repository (git remote add)
5.4 Viewing Remote Repositories (git remote -v)
5.5 Cloning an Existing Repository (git clone)
5.6 Pushing Changes to a Remote (git push)
5.7 Fetching Changes from a Remote (git fetch)
5.8 Pulling Changes from a Remote (git pull)
5.9 Understanding origin and upstream
5.10 Practice: Cloning, Pushing, and Pulling
© 2025 ApX Machine Learning