J
J
Jekson2020-03-04 15:33:05
git
Jekson, 2020-03-04 15:33:05

How to switch to another git branch on the server?

There are 3 branches on the local machine:
master
develop
feature

Same thing on gitlab

On the remote server I cloned the master branch. Now I need the git pull command to pull the develop version into this repository and not the master. I tried to do
git pull origin develop and it turned out that it merged into the master branch.

Tell me how to switch to using develop ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question