I cloned a remote repository with a project from the master branch, made a few changes, now I need to create a separate branch, push the changes into it, push these changes to the remote repository. How can this be done?
p.s. I was thrown on a project with git, but I never worked with it.
Answer 1, authority 100%
If you haven’t committed yet, then create a new branch
git checkout -b branch_name
Index your changes
Create a commit
git commit -m 'Comment on branch_name'
And push the changes to the remote server
git push origin branch_name