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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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/Developmentgit push -u origin Development(like in “Github: Import upstream branch into fork“)