I have 10 commits on a local branch1 used for new features that I want to move to a new local branch2 simply so I can use a more appropriate branch name because the branch1 name I'm using now is ambiguous. As mentioned the current local branch1 with the 10 commits is not the master so no problem there. All commits are local. Nothing pushed to remote yet.
EDIT: Oh wow. You can simply click rename branch in GitHub for desktop. Or just
git branch -m <newname>.
So I've renamed the current local branch and done all my local commits. I'm ready to make a pull request but what should I do first?
Should I first push to origin which is my GitHub repo (it's actually a fork of someone's project) or should I do the pull request first?
EDIT: Oh wow. You can simply click rename branch in GitHub for desktop. Or just
git branch -m <newname>.
So I've renamed the current local branch and done all my local commits. I'm ready to make a pull request but what should I do first?
Should I first push to origin which is my GitHub repo (it's actually a fork of someone's project) or should I do the pull request first?
Last edited: