-2
I need help switching the branch of a folder. I’m going to participate in an open source project on github, so I cloned the folder I need via git, but the folder was in the master branch and I need it in another branch. I created a new branch, but now I don’t know how to get this folder out of the master branch and into this new branch that I created. When I open the folder in visual studio I can see that it’s in the master branch. I’m a beginner in git/github. Thank you.
tries: git checkout nameDaBranch
– Felipe Maia Vieira
I had a similar problem, only it’s a few months old and I don’t remember exactly how I solved it. Try to see this link has a section called "Switch branch using git switch". Follow the link: https://devconnected.com/how-to-switch-branch-on-git/ Good luck...
– Nelson Francisco
First thing you have to do is a
git pull
, afterwardgit checkout suaBranch
etc. Or it starts again, enters the master, a pull, creates a new branch and touches the boat– hugocsl