git – remote add origin vs remote set-url origin
below is used to a add a new remote: below is used to change the url of an existing remote repository: below will push your code to the master branch of the remote repository defined with origin and -u let you point your current local branch to the remote master branch: