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

Name: A branch
Definition: A lightweight movable pointer to one of the commits.
Page: https://git-scm.com/docs/gitglossary
Chapter: 3
Section: 2
Intuition: A line of development

Fla: --upstream remote/branch
Effect: States that the current branch's upstream branch is remote/branch
Prefix: git branch
Flag abbreviation: -u remote/branch
Chapter: 3
Section: 5

Fla: branch a
Effect: Creates a branch, named a, pointing to the current commit
Prefix: git
Chapter: 3
Section: 1

Fla: branch -d arg
Effect: Delete the branch arg
Prefix: git
Chapter: 3
Section: 1

Fla: git branch
Effect: Get a list of branch.
Prefix: git
Chapter: 3

Fla: -v
Effect: Show for each branch its last commit
Prefix: git branch
Chapter: 3

Fla: --merged
Prefix: git branch
Chapter: 3
Print: Restrict displayed to merged branch in current HEAD

Fla: --no-merged
Prefix: git branch
Chapter: 3
Print: Restrict displayed to branch not merged in current HEAD

Fla: -D foo
Effect: Force delete the unmerged branch foo
Prefix: git branch
Chapter: 3

Fla: -vv
Prefix: git branch
Chapter: 3
Section: 5
Print: The list of tracking branches.
  iss53   93b412c Fix javascript issue
* master  7a98805 Merge branch 'iss53'
  testing 782fd34 Add scott to the author list in the readme

Fla: branch
Effect: Show the commit pointed by this branch
Page: https://git-scm.com/book/en/v2/Git-Tools-Revision-Selection
Prefix: git show
Chapter: 7
Section: 1

Fla: filter-branch foo bar
Effect: Apply command foo to each branch designated by bar
Page: https://git-scm.com/book/en/v2/Git-Internals-Maintenance-and-Data-Recovery
Prefix: git
Chapter: 10
Section: 7

Fla: --index-filter
Effect: apply the command to staging area or index, instead of applying it to file on disk
Page: https://git-scm.com/book/en/v2/Git-Internals-Maintenance-and-Data-Recovery
Prefix: git filter-branch foo bar
Chapter: 10
Section: 7

Fla: --move foo bar
Effect: Rename branch foo to bar
Page: https://git-scm.com/book/en/v2/Git-Branching-Branch-Management
Prefix: git branch
Chapter: 3

Fla: branch branchName
Effect: create a new branchName, from HEAD, on which last stash is applied. If succesful, drop the stash
Page: https://git-scm.com/book/en/v2/Git-Tools-Interactive-Staging
Prefix: git stash
Chapter: 7
Section: 2

Fla: filter-branch --tree-filter 'cmd'
Effect: run cmd after each check-out and recommit the result
Page: https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History
Prefix: git
Chapter: 7
Section: 6

Fla: --all
Effect: apply the filter-branch to every single branch
Page: https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History
Prefix: git filter-branch
Chapter: 7
Section: 6

Fla: filter-branch subdir
Effect: move the root of the project to subdir, recreating history from this perspective
Page: https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History
Prefix: git
Chapter: 7
Section: 6

Fla: -s ours
Effect: create a new commit, that consider that branchRef is merged into HEAD, but don't actually change a single file
Page: https://git-scm.com/book/en/v2/Git-Tools-Advanced-Merging
Prefix: git merge branchRef
Chapter: 8

Variable: .git/branches
Meaning: slightly deprecetade way to store which branch track which value
Page: https://git-scm.com/docs/gitrepository-layout
Context: git
Kind: file

Fla: --branch
Effect: Show the branch and tracking info even in short-format
Page: https://git-scm.com/docs/git-add
Prefix: git status
Flag abbreviation: -b

Fla: todo
Page: https://git-scm.com/docs/git-filter-branch
Prefix: git filter-branch

Name: The tip of branch
Definition: The commit to which branch's point to
Page: https://git-scm.com/docs/gitglossary
Variables: branch a branch

Name: The current branch
Definition: The branch to which HEAD point, that is currently in the working tree
Page: https://git-scm.com/docs/gitglossary
Name2: The checked-out branch