-3

I'm not experienced with git. I cloned a master branch of a project via git clone --link-- and now in my git bash window I see: /c/app/project (master) so I'm in the master. Now I want to switch to an existing branch (say test) and do a pull to get the latest changes. When I type git checkout test I get error: "error: pathspec 'test' did not match any file(s) known to git. how can I switch the branch

(since this was marked as duplicate, I checked the supposed answer and that did not solve my problem. It seems that I'm unable to move out of the master branch of my project)

Sim
  • 3
  • 2

1 Answers1

0

You should get familiar first with basic git. This is one of the possible resource which you can print and put beside your workstation.

Git cheat sheet

You can use

git fetch if you want to just get remote branches

or you can use

git pull to sync the local with remote branches

Yaman Jain
  • 1,254
  • 11
  • 16