Skip to content

How to get a new branch in an old fork #418

Answered by loicguilmard
loicguilmard asked this question in Q&A
Discussion options

You must be logged in to vote

To sync/get a specific branch
if the fork sync button is not working for new branches. You need to use the git remotes to get the modification and push it to your fork projet.

Here is how :
What are my current remotes :

# git remote -v
origin          git@github.com:loicguilmard/PyMoDAQ.git (fetch)
origin          git@github.com:loicguilmard/PyMoDAQ.git (push)

origin is the default remote name used when you fetch/pull/push with git without arguments.

  1. To get the 5.0.x_dev, i need to add the repository from which i wanted to branch:

# git add remote pymodaq https://github.com/PyMoDAQ/PyMoDAQ.git

  1. Get the modification that were not on my working computer from that new remote :
# git fetc…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by loicguilmard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants