Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

patent10021

macrumors 68040
Original poster
Apr 23, 2004
3,537
813
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?
 
Last edited:
I just renamed it in GitHub app or command line. Easy.


I created the pull request. It's still open and the owner has created a new branch5 and wants me to point my same pull request to the new branch5.

Do I just go back to GitHub desktop and submit a new pull request to the new branch5 or can I just change the destination of the previous pull request in some GitHub settings?

btw, why doesn't he just pull it then merge it himself?

Never mind. It was easy.
http://stackoverflow.com/questions/...-github-to-change-target-branch-to-merge-into
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.