Git pull a certain branch from GitHub

0 votes
Hi Guys,

I have a project with multiple branches. I've been pushing them to Github, and now someone else is working on the project. I need to pull their branches from GitHub. How to do that?
Jan 5, 2021 in Git & GitHub by akhtar
• 38,260 points
699 views

1 answer to this question.

0 votes

Hi@akhtar,

You can simply track your remote branches explicitly, and a simple git pull will do just what you want.

$ git branch -f remote_branch_name origin/remote_branch_name
answered Jan 5, 2021 by MD
• 95,460 points

Related Questions In Git & GitHub

0 votes
1 answer

How to get changes from master branch to a new branch in Git?

Hi@akhtar, You need to check out the branch and ...READ MORE

answered Jan 4, 2021 in Git & GitHub by MD
• 95,460 points
1,116 views
0 votes
1 answer

How to do a re-merge into another branch in git

Seems like you want to rebase your ...READ MORE

answered May 7, 2018 in Git & GitHub by DareDev
• 6,890 points
2,445 views
0 votes
1 answer

How to perform a sonarqube analysis from drone.io in github?

DRONE_PULL_REQUEST  env variable holds the pull request ...READ MORE

answered Jul 6, 2018 in Git & GitHub by DareDev
• 6,890 points
2,589 views
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,993 views
+2 votes
1 answer
0 votes
1 answer

How to create branch in GitHub from my local Git repo?

Hi@akhtar, To sync your existing branch in GitHub, ...READ MORE

answered May 7, 2020 in Git & GitHub by MD
• 95,460 points
870 views
0 votes
1 answer

How to pull from a Git repository through an HTTP proxy?

Hi@akhtar, You can set the HTTP proxy that Git ...READ MORE

answered Nov 22, 2020 in Git & GitHub by MD
• 95,460 points
2,696 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP