配置相关
git config --global core.quotepath false # 不转换文件编码
git config --global core.autocrlf false # 不转换换行符
git config --global core.longpaths true # 解决win10克隆代码报路径太长问题
仓库迁移相关
git clone --bare XXXXXXX
cd XXXXXXX/
git push --mirror XXXXXXX/ # 新克隆地址
git branch|wc -l
git clone -b dev 原仓库地址
cd 克隆目录/
git remote rm origin
git remote add origin 新仓库地址
git config --list (查看remote.origin.url是否为新仓库地址)
git push origin dev