Languages
[Edit]
EN

Git - create remote branch

0 points
Created by:
Suzannah-Estrada
620

In this article, we would like to show you how to create remote branch from the command line in Git.

Quick solution:

git checkout -b branch_name
git push -u origin branch_name

Practical example

The first thing you need to do is to create a local branch e.g new_branch:

git checkout -b new_branch

Then push it to the remote repository:

git push -u origin new_branch
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Git

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join