查看远程仓库地址
git remote show origin
设置远程仓库地址
git remote set-url origin URL
切换并创建新分支
git checkout -b [branch]
允许合并无关的历史
git pull origin feature --allow-unrelated-histories
切换仓库并提交之前历史记录
最新推荐文章于 2024-05-02 10:31:12 发布
查看远程仓库地址
git remote show origin
设置远程仓库地址
git remote set-url origin URL
切换并创建新分支
git checkout -b [branch]
允许合并无关的历史
git pull origin feature --allow-unrelated-histories