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 in Git & GitHub by akhtar
• 38,170 points
108 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 by MD
• 95,160 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 in Git & GitHub by MD
• 95,160 points
83 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
904 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
1,275 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,064 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,160 points
139 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 21, 2020 in Git & GitHub by MD
• 95,160 points
93 views