Languages
[Edit]
EN

Git - create remote branch

0 points
Created by:
Dirask Community
6930

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

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