How to create a remote git branch

https://www.w3docs.com/snippets/git/how-to-create-a-remote-branch-in-git.html

Step 1:


you are on master branch

then you are planning to create a new branch on the master branch

use the following command


git checkout -b <new-branch-name>

this command is used to create a local branch on the current local branch

ex: git checkout -b feature/ixu



then after that 

git push -u origin your_remote_branch_name 


ex: git push -u origin feature/ixu


Comments

Popular posts from this blog

Fixing the DeepSpeed Import Error While Fine-Tuning the Qwen Model

Amazon Linux 2023 - User data configuration for launch templates to connect to the EKS cluster

How to create ISM policy and rotate logs in opensearch