Git push new branch

To push a new branch to a remote repository using Git, you can use the following command:

git push -u origin <branch-name>

Here:

For example, if you want to create a new branch called feature/new-login-system and push it to the remote repository, you would run:

git push -u origin feature/new-login-system

This will create the new branch on the remote repository and set the upstream tracking information for the branch.

If you want to push an existing local branch to a remote repository, you can use the same command without the -u option:

git push origin <branch-name>

For example:

git push origin feature/new-login-system

This will push the existing local branch feature/new-login-system to the remote repository.