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, 2020 in Git & GitHub by akhtar
• 38,220 points
186 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, 2020 by MD
• 95,320 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
1,128 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,428 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, 2020 in Git & GitHub by akhtar
• 38,220 points
172 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, 2020 in Git & GitHub by MD
• 95,320 points
734 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
1,337 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, 2020 in Git & GitHub by MD
• 95,320 points
289 views
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,320 points
251 views