I need fork a branch of a specific project. I have already fork the main branch but now the mantainer has add a new branch for "Development" and I need to download the code and modify something and then send a pull request.
How can I fork a branch?
I need fork a branch of a specific project. I have already fork the main branch but now the mantainer has add a new branch for "Development" and I need to download the code and modify something and then send a pull request.
How can I fork a branch?
You can reuse your existing fork and simply fetch the new branch in your local repo, pushing that branch to your fork.
Your local repo has for remote 'origin' your fork, but you can add another remote "upstream" referencing the mantainer repo.
You can:
git fetch upstream
, git checkout -b Development upstream/Development
git push -u origin Development
(like in "Github: Import upstream branch into fork")