M
M
MalekBV2021-07-10 19:46:58
git
MalekBV, 2021-07-10 19:46:58

How to download a git branch from another?

I made myself a branch, let's say task-1 , wrote the code and froze
Now I need to switch to another branch ( task-2 ) in the repository that another person created and worked with.
I need to get all the files in order to work with what is on this branch; let's fix this person's mistakes

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2021-07-10
@zagayevskiy

git fetch origin task-2
git checkout task-2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question