1.git fetch 获取所有分支
2.git branch -a 查看所有分支
3.git clone xxx 克隆远程分支到本地
4.fork 开发
eg:别人的仓库A fork的仓库B 本地仓库 C
git clone B
git remote add name(tuhu) A的git地址
git fetch tuhu 拉取仓库A 的 所有分支
5.npm i --registry=https://registry.npm.taobao.org 淘宝安装
6.git remote update origin -p 更新远程分支
7.将远程git仓库里的指定分支拉取到本地(本地不存在的分支)
git checkout -b 本地分支名 origin/远程分支名
8.git push 远程仓库名 --delete 要删除的分支名
git操作
最新推荐文章于 2022-12-16 09:35:47 发布