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 branch_name
git checkout -b branch_name
Index your changes
git add.
Create a commit
git commit -m 'Comment on branch_name'
And push the changes to the remote server
git push origin branch_name