My local repo is ahead of the remote. In the SourceTree view, my local repo (top line) is ahead of remote, or "origin/master" (second line) by 9 commits.
This is confirmed with git status: Your branch is ahead of 'origin/master' by 9 commits. (use "git push" to publish your local commits) nothing to commit, working directory clean
But, I don't want to just do a git push because I want to put my 9 commits on a branch or feature.
Specifically, I want to: - reset my local install back to origin/master - add a new feature or branch that splits off from the master - commit my changes - push the feature branch
I'm confused about the first step: Resetting my local back to the origin/master. I believe a rebase would do this from command line but how would I do this within SourceTree?
I've searched this topic and answers advise a 'git push', but I want to do the push from the new feature branch, all in SourceTree.
Thanks.