How do I push a new local branch to a remote Git repository first time?

By admin , 5 August, 2022

We need to set the remore as upstream.

 

git push --set-upstream origin [Branch_Name]

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.