2
Reply

How do I push a new local branch to a remote Git repository and track it too?

How do I push a new local branch to a remote Git repository and track it too?

    By using Github desktop , we can push localbranch to remote branch . Then in browser of github we can raise a pull request to merge into develop branch.

    git remote add origin <>
    git branch -M main
    git push -u origin main
    git status