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

0 votes

Hi Guys,

I have one new branch in my local Git named dev1. I want to sync this branch in my GitHub repo. How can I do this from my local Git repo?

May 7 in Git & GitHub by akhtar
• 25,210 points
78 views

1 answer to this question.

0 votes

Hi@akhtar,

To sync your existing branch in GitHub, you have to tell your branch name to GitHub using git push command as follows.

$ git push --set-upstream origin dev1

Hope this will help.

answered May 7 by MD
• 57,060 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,850 points
589 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,850 points
939 views
0 votes
0 answers

How to use p4merge tool in Git & GitHub?

Hi, Can someone tell me, how to use ...READ MORE

Jan 31 in Git & GitHub by akhtar
• 25,210 points
75 views
0 votes
1 answer

How to remove remote origin from Git repo?

Hi@akhtar, You can remove or add a new ...READ MORE

answered Sep 4 in Git & GitHub by MD
• 57,060 points
60 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
682 views
+2 votes
1 answer
0 votes
1 answer

How to share images in GitHub from local system?

Hi@akhtar, You can follow the below steps to ...READ MORE

answered May 7 in Git & GitHub by MD
• 57,060 points
70 views
0 votes
1 answer

How to configure git send-email in local system?

Hi@akhtar, To use git send-email service you have ...READ MORE

answered May 4 in Git & GitHub by MD
• 57,060 points
118 views