0

I have a BranchA. I did the modifications on BranchA, and wrote a decent comment on it. Then I realized I should do it on a new branch. So I built a new BranchB based on BranchA.

git checkout -b BranchB BranchA 

BranchB has all the changes made in BranchA. But BranchB can be pushed, because BranchB has "nothing" be changed from BranchA.

How do I push BranchB to origin BranchB?

1

2 Answers 2

0

Please use this software to manage your branch easily: https://www.sourcetreeapp.com/

First Commit your code and push it on BranchB

git commit -m "Your Message" git push BranchB 

Then Marge branch BranchB into BranchA

git merge BranchB BranchA 

Merging 2 branches together in GIT

Sign up to request clarification or add additional context in comments.

Comments

0
git rebase origin/master 

That all your changes to the origin/master would be presented.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.