Artificial intelligent assistant

シングルブランチでクローンしたあとに別のブランチを取ってきたい `git clone -b branch1 --single-branch clone `--single-branch`clone`branch1``git filter-branch --tree-filter`branch1`master``git filter-branch master..HEAD``master``branch1` branch1`HEAD~123..HEAD``master..HEAD` git

`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

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 58766315c08b72d4c9a8c0a2dbd4eff6