`git clone -b branch1 --single-branch clone`.git/config`
[remote "origin"]
url =
fetch = +refs/heads/branch1:refs/remotes/origin/branch1
`--single-branch` clone
[remote "origin"]
url =
fetch = +refs/heads/*:refs/remotes/origin/*
fetch
* fetch
* fetch(master)fetch(remotes/origin/master)
`--single-branch` fetch
`refs = ...`
masterfetch
* `git fetch origin master:remotes/origin/master` fetch
※ `remotes/origin/master` fetch `master` fetch
* `.git/config` `fetch = +refs/heads/master:refs/remotes/origin/master`
`git fetch` branch1 master fetch
* `.git/config` `fetch = +refs/heads/*:refs/remotes/origin/*`
`--single-branch`
1master2
* How to clone a single branch in git? - Stack Overflow
* 10.5 Git - Refspec / Git Book
* Git - git-fetch Documentation