我在代码中加入了远程仓库的起点。
我的现有仓库有三个分支:
我希望将其推送到远程测试分支并删除本地分支 origin、test 和 master。
我的现有仓库有三个分支:
master
、test
和user
。
但在添加并确认远程origin
后,使用命令'git remote -v
','git branch --list
'命令仅显示一个分支,即master
。
我不知道它是否确切地指向我想要推送代码的那个起点。
我想要将新代码推到test
分支。
git branch -avv
master first commit
origin first commit
* test first commit
remotes/origin/master Update register.tsx
remotes/origin/test Update next.config.js
remotes/origin/aman june 25
我希望将其推送到远程测试分支并删除本地分支 origin、test 和 master。
git switch -c test
fatal: only one reference expected
当我试图从VSCode切换到remote/origin/test
分支时,它会显示分支'test'已经存在。