I have two branches: main and develop/selenium.
We on the test team want to work on develop/selenium so we would like to create new branches from it. Now I understand how to do that with git checkout -b "branch-name" develop/selenium.
The part where I get confused is when it comes to pushing this commit, for example when I write a test and go to commit it, I would do git commit -m "something"
But then would I do (to push the local feature branch I'm working on to remote develop/selenium) git push origin branch-name
And then to (push remote develop/selenium to remote main)
Is that how it would work or have I misunderstood?
In work we have been asked to clone develop/selenium and create branches on it, but I didn't think we could clone just the branch, would the main not just be cloned and we would still have to checkout develop/selenium and work from there right?