I added the origin of remote repository in my code.
My existing repository have three branches: master, test, user.
But after adding and confirming the remote origin by command 'git remote -v', the 'git branch --list' command is displaying only one branch that is master.
I don't know if it is exactly pointing to that origin where I want to push the code.
I want to push the new code to test branch.
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
I want to push it to remote test branch and delete local branches origin, test and master.
git switch -c test
fatal: only one reference expected
And when I tried to switch to remote/origin/test branch from vscode it says branch 'test' already exists.