#只来去分支代码,拉取指定分⽀到本地分⽀,方法一:
root@ubuntu:~/test-dir-git# git clone -b project-branch "ssh://xiaoming@1.1.1.1:10000/project" &&
scp -p -P 10000 xiaoming@1.1.1.1:hooks/commit-msg "project/.git/hooks/"
root@ubuntu:~/test-dir-git/project# git branch
* project-branch
*
--------------
git工具----checkout --远端仓库代码--同步主分支代码--并提交分支代码
于 2022-07-26 14:19:03 首次发布
