In Git, what does the command git push -u origin master do?

  • Push the changes from the local 'master' branch to the 'origin' remote repository, setting up a tracking relationship.
  • Undo the last commit on the 'master' branch and push the changes to the 'origin' remote repository.
  • Push the changes from the 'origin' remote repository to the local 'master' branch.
  • Update the 'origin' remote repository with changes from the local 'master' branch, ignoring any conflicts.
The '-u' option sets up a tracking relationship, linking the local 'master' branch with the 'origin' remote repository, simplifying future push/pull operations.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *