notebook/notes/git/remotes.md

43 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Remotes
TARGET DECK: Obsidian::STEM
FILE TAGS: git
tags:
- git
---
## Overview
A **remote** is a version of the project different from the one currently on. Remotes are stored in `.git/config`. List remotes using the following command:
```sh
$ git remote -v
```
%%ANKI
Basic
What is a remote repository?
Back: A version of the repository located *somewhere* else.
Reference: Scott Chacon, *Pro Git*, Second edition, The Experts Voice in Software Development (New York, NY: Apress, 2014).
<!--ID: 1715623927181-->
END%%
%%ANKI
Basic
What misnomer may be associated with a remote repository?
Back: A remote could exist on the same machine as the referencing repo.
Reference: Scott Chacon, *Pro Git*, Second edition, The Experts Voice in Software Development (New York, NY: Apress, 2014).
<!--ID: 1715623927187-->
END%%
%%ANKI
Basic
What kind of git refs are associated with remotes?
Back: Remote branch refs.
Reference: Scott Chacon, *Pro Git*, Second edition, The Experts Voice in Software Development (New York, NY: Apress, 2014).
<!--ID: 1715623927197-->
END%%
## Bibliography
* Scott Chacon, *Pro Git*, Second edition, The Experts Voice in Software Development (New York, NY: Apress, 2014).