N
N
NewBeHere2019-05-29 20:47:23
git
NewBeHere, 2019-05-29 20:47:23

How to change remote branches?

Hello, a question arose, let's say the situation is: there is a repository on it with different branches, I make a clone of the repo, and all the branches I get are remote origin/...
I need to make changes in some branch, let's call newFeature, and send back to the repository, but not make a branch from it, namely within the newFeature branch, it comes to me as origin / newFeature, what should I do? Create your own with the same name and just push, but is it there somehow (I’m not very good at git) on the repository already combined with the remote one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Gribanov, 2019-05-30
@gribanov2la

git checkout -b newFeature origin/newFeature

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question