How to create a remote Git branch

+1 vote

Hi Team,

I am working on git locally. I want create one branch in the remote repository. How to create that?

Dec 22, 2020 in Git & GitHub by akhtar
• 38,260 points
627 views

1 answer to this question.

0 votes

Hi@akhtar,

The easiest way is to create one branch in the local git repository and later push it to the remote repository. You can use the below commands to do so.

$ git checkout -b <branch-name> 

The remote branch is automatically created when you push it to the remote server.

$ git push <remote-name> <branch-name>
answered Dec 22, 2020 by MD
• 95,460 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
2,473 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
13,693 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,260 points
1,143 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,460 points
772 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,064 views
+2 votes
1 answer
+1 vote
1 answer

How to check out a remote Git branch?

Hi@akhtar, You can use the git checkout command ...READ MORE

answered Nov 21, 2020 in Git & GitHub by MD
• 95,460 points
562 views
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
927 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