Rylan Schaeffer
Rylan Schaeffer

Reputation: 2673

Git: add branch created in forked repo to original repo

I forked a repo A to create repo B, created a new branch (let's call it b_branch) and committed a few changes to that branch. I'd now like to add that branch and my changes to repo A under the same branch name (e.g. b_branch). How do I do this?

Upvotes: 0

Views: 34

Answers (1)

Dmitry Barskov
Dmitry Barskov

Reputation: 1257

If you have write access to A repo, you can do

git remote add A <url of repo A>

git push A branch_b

Upvotes: 1

Related Questions