15. Advanced Git Features

At the heart of Git are the repositories. Chapters 13 and 14 introduced you to tools that enabled you to work with the local repository. In this chapter you learn how to interact with the central repository server.

Managing Repositories

From your perspective, the central repository server is also considered the remote repository as opposed to the repository that is on your system (the local repository).

To see the location of your remote repository, execute the git remote -v command:

ocs@ubuntu:~/ocs$ git remote -v origin https://gitlab.com/borothwell/ocs.git (fetch) origin https://gitlab.com/borothwell/ocs.git (push)

Both lines point to the same location. The first line refers to the process of downloading content ...

Get Linux for Developers: Jumpstart Your Linux Programming Skills now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.