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
• 11,270 points
39 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
• 24,500 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
433 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
751 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
• 11,270 points
46 views
–1 vote
1 answer

Having problem in Github and remote Git repo with production and development code

I think you could start with this. The ...READ MORE

answered Apr 10, 2018 in Git & GitHub by shubham
• 6,910 points
153 views
+13 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,420 points
498 views
0 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
• 24,500 points
20 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
• 24,500 points
26 views