Skip to content
Discussion options

You must be logged in to vote

Hi Thomas, to integrate the 'foo' branch from repo B into your local clone of repo A, following steps can be helpful:

  1. Add Repository B as a Remote:
    git remote add B <URL_of_Repository_B>

  2. Fetch the 'foo' Branch from Repository B:
    git fetch B foo

  3. Merge 'foo' Branch into Your Branch:
    git checkout <your_development_branch>
    git merge B/foo

  4. Push Changes to Your GitHub Fork (Optional):
    git push origin <your_development_branch>

With this, you'll be able to integrate the 'foo' branch from repo B into your local clone of repo A.

Sincerely,
Chava

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@TDuessel
Comment options

Answer selected by TDuessel
Comment options

You must be logged in to vote
1 reply
@TDuessel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New To GitHub 👋 New To GitHub
3 participants