How to check out a remote Git branch

+1 vote

Hi Guys,

I am new to Git. I want to check out a remote Git branch. How can I do that?

Nov 21, 2020 in Git & GitHub by akhtar
• 38,120 points
34 views

1 answer to this question.

0 votes

Hi@akhtar,

You can use the git checkout command to perform the task. You need to specify the branch name with the help of the -b tag, as shown below.

$ git checkout -b test <name of remote>/test
answered Nov 21, 2020 by MD
• 95,010 points

Related Questions In Git & GitHub

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
762 views
0 votes
1 answer

How to add a remote git repository in Jenkins

Follow these steps: Step 1 Go to Manage ...READ MORE

answered May 23, 2019 in Git & GitHub by Alok
1,168 views
0 votes
1 answer

How to delete a remote Git tag?

Hi@MD, It is very simple to delete a ...READ MORE

answered Sep 4, 2020 in Git & GitHub by akhtar
• 38,120 points
153 views
0 votes
1 answer

How to delete a Git branch remotely?

Hi@akhtar, You can delete the branch locally or ...READ MORE

answered Nov 21, 2020 in Git & GitHub by MD
• 95,010 points
43 views
+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
895 views
+2 votes
1 answer
+1 vote
1 answer

How to create a remote Git branch?

Hi@akhtar, The easiest way is to create one ...READ MORE

answered Dec 22, 2020 in Git & GitHub by MD
• 95,010 points
31 views
0 votes
1 answer

How to untrack and remove a deleted file and log when we check git status ?

Hi@Shashi, You can use the git clean command. ...READ MORE

answered Oct 28, 2020 in Git & GitHub by MD
• 95,010 points
249 views