I have a local repo for a website I am helping make. I edited some element of the page and I wanted to push the change. The leader of the site project told me to make a new branch, e.g enhancements/pagename, commit the changes I made to this branch, and push the commits.
However, when I push this, it is also pushing earlier commits from the master branch. How do I get git to only push the one commit I have made on the branch?
I am using git checkout -b branchname to create the branch.