Title: Theory / Important / CS / Softw / VCS / Git / Remote
Tags: fromMath mathToDef computer_to_instruction hasNotNewEffectReturnsMeaning FromInstruction fromCommand some_instruction fromCommandLine

Name: Remote references
Definition: References in the remote repositories
Chapter: 3
Section: 5

Name: A remote-tracking branch
Definition: A branch corresponding to a remote
Chapter: 3
Section: 5
Denoted by: remoteName/branchName

Fla: remote
Prefix: git
Chapter: 2
Section: 4
Print: The list of configured git server

Fla: add <name> <URL>
Effect: Add a remote <name> to <URL>
Prefix: git remote
Chapter: 2
Section: 5

Fla: remote show
Effect: fetch information about the remotes' branch and print them
Prefix: git
Chapter: 2
Section: 5

Fla: rename oldName newName
Effect: change a remote's name from oldName to newName
Prefix: git remote
Chapter: 2
Section: 5

Fla: remove <name>
Effect: Remove the remote <name>
Prefix: git remote
Flag abbreviation: rm <name>
Chapter: 2
Section: 5

Fla: --verbose
Effect: show urls of each remotes
Page: https://git-scm.com/book/fr/v2/Les-bases-de-Git-Travailler-avec-des-dépôts-distants
Prefix: git remote
Flag abbreviation: -v
Chapter: 2

Name: A remote
Definition: A repository which is used to track the same project but resides somewhere else.
Page: https://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-History
Chapter: 2
Section: 5
Context: git

Fla: -v
Page: https://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-History
Prefix: git remote
Chapter: 2
Section: 5
Context: git
Print: Also print the url of remotes

Fla: remote localName:branchNameOnRemote
Effect: push local branch to remote's branchNameOnRemote
Page: https://git-scm.com/book/en/v2/Git-Branching-Branch-Management
Prefix: git push
Chapter: 3

Variable: .git/refs/remotes/remoteName
Meaning: A directory containing files whose names are branches from remoteName and content is its hash
Page: https://git-scm.com/book/en/v2/Git-Internals-Git-References
Section: 3
Chapter: 10

Variable: url
Meaning: url of remoteName
Page: https://git-scm.com/book/en/v2/Git-Internals-The-Refspec
Context: [remote "remoteName"]
Section: 5
Chapter: 10

Variable: fetch
Meaning: what to fetch and what to update from those fetches
Page: https://git-scm.com/book/en/v2/Git-Internals-The-Refspec
Context: [remote "remoteName"]
Section: 5
Chapter: 10
Value: b

Instruction: <src>:<dst>
Page: https://git-scm.com/book/en/v2/Git-Internals-The-Refspec
Effect: src pattern for references on the remote side and dst where the references will be tracked locally.
Context: [remote "remoteName"]
  fetch
Chapter: 10
Section: 5

Instruction: +<src>:<dst>
Page: https://git-scm.com/book/en/v2/Git-Internals-The-Refspec
Effect: src pattern for references on the remote side and dst where the references will be tracked locally. Pull will update even if it isn't a fast-forward
Context: [remote "remoteName"]
  fetch
Chapter: 10
Section: 5

Variable: push
Meaning: <src>:<dst> indicates that `git push remoteName` sends src to dst
Page: https://git-scm.com/book/en/v2/Git-Internals-The-Refspec
Context: [remote "remoteName"]
Section: 5
Chapter: 10

Variable: .git/remotes
Meaning: Stores from name to url of remotes
Page: https://git-scm.com/docs/gitrepository-layout
Context: git
Kind: file

Fla: -f
Effect: Fetch immediately after creating of the remote
Page: https://git-scm.com/docs/git-tag
Prefix: git remote add <name> <URL>

Fla: --tags
Effect: when fetching this remote, also import tags
Page: https://git-scm.com/docs/git-tag
Prefix: git remote add <name> <URL>

Fla: -t <branch_1> ... -t <branch_n>
Effect: When fetching, track only <branch_i>'s
Page: https://git-scm.com/docs/git-tag
Prefix: git remote add <name> <URL>

Fla: -m <master>
Effect: a symbolic-ref refs/remotes/<name>/HEAD is set up to point at remote’s <master> branch.
Page: https://git-scm.com/docs/git-tag
Prefix: git remote add <name> <URL>

Fla: set-head <remoteName> --deleted
Effect: Delete the default branch of remote <remoteName>
Page: https://git-scm.com/docs/git-tag
Prefix: git remote
Flag abbreviation: set-head <remoteName> -d

Fla: set-head <remoteName> --auto
Effect: default branch for <remoteName> is copied from fetched value
Page: https://git-scm.com/docs/git-tag
Prefix: git remote
Flag abbreviation: set-head <remoteName> -a

Fla: set-head <remoteName> --branch <branchName>
Effect: Set default branch for <remoteName> to <branchName>
Page: https://git-scm.com/docs/git-tag
Prefix: git remote

Fla: set-branches <remoteName>  <branchName_0> ... <branchName_n>
Effect: Ensure that <remoteName> track exactly branches <branchName_i>
Page: https://git-scm.com/docs/git-tag
Prefix: git remote

Fla: set-branches --add <remoteName>  <branchName_0> ... <branchName_n>
Effect: Ensure that <remoteName> also track exactly branches <branchName_i>
Page: https://git-scm.com/docs/git-tag
Prefix: git remote

Fla: get-url <remoteName>
Page: https://git-scm.com/docs/git-tag
Prefix: git remote
Print: The fetch url for <remoteName>

Fla: get-url --push <remoteName>
Page: https://git-scm.com/docs/git-tag
Prefix: git remote
Print: push URL for <remoteName>

Fla: get-url --all <remoteName>
Page: https://git-scm.com/docs/git-tag
Prefix: git remote
Print: push and fetch URL for <remoteName>

Fla: remote -n show <remoteName>
Page: https://git-scm.com/docs/git-tag
Prefix: git remote
Print: print current informations about <remoteName> without fetching them

Fla: set-url <remoteName> <newURL>
Effect: change first fetch url of <remoteName> to <newURL>
Page: https://git-scm.com/docs/git-tag
Prefix: git remote

Fla: set-url <remoteName> <newURL> <oldURL>
Effect: change first fetch url matching <oldURL> of <remoteName> to <newURL>
Page: https://git-scm.com/docs/git-tag
Prefix: git remote

Fla: set-url --add <remoteName> <newURL>
Effect: Add to <remoteName> the fetch url <newURL>
Page: https://git-scm.com/docs/git-tag
Prefix: git remote

Fla: set-url --delete <remoteName> <URL>
Effect: Remove from <remoteName> the fetch <URL>
Page: https://git-scm.com/docs/git-tag
Prefix: git remote

Fla: --push
Effect: Change push URL instead of the fetch URL
Page: https://git-scm.com/docs/git-tag
Prefix: git remote set-url

Fla: prune <name>...
Effect: Delete stale references associated with <name>...
Page: https://git-scm.com/docs/git-tag
Prefix: git remote

Fla: update
Effect: Fetch updates for remotes or remote groups in the repository as defined by remotes.<group>.
Page: https://git-scm.com/docs/git-tag
Prefix: git remote