Home > Back-end >  Git: add branch created in forked repo to original repo
Git: add branch created in forked repo to original repo

Time:01-15

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?

CodePudding user response:

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

git remote add A <url of repo A>

git push A branch_b
  •  Tags:  
  • Related