S

Satya • 2.41K Points
Master

Q. What does 'git push origin main' do?

  • (A) Pulls the latest code from the main branch
  • (B) Pushes the local 'main' branch to the remote named 'origin'
  • (C) Deletes the local main branch
  • (D) Fetches all branches from origin
  • Correct Answer - Option(B)
  • Views: 9
  • Filed under category GitHub
  • Hashtags:

Explanation by: Satya
'git push origin main' pushes your local 'main' branch to the remote repository named 'origin'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.