Github - Branch

Asked

Viewed 45 times

0

Good morning, everyone! There is a repository on github with 02 branch: (Master and Develop). I cloned the Master branch in my local environment and from this Master branch I created the Feature-enhancements, however, the branch that is updated on github is Develop.

Doubt: How would I access the Develop branch and create another branch of it on my site?

Thank you!

1 answer

0


After you’ve cloned the repository to change branch you can use the command

git checkout develop

To create a branch from this branch you can use the command:

git checkout -b feature/{nome-da-sua-branch}
  • when I execute the git checkout develop appears the following error error: pathspec 'feature/teleconsulta' did not match any file(s) known to git.

  • @Senaoliveira, you can use git remote update, git fetch and git switch develop

  • Now it worked!!! I executed the git remote update and it was!! Thank you!!!!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.