What would "git push --set-upstream master master" do?

Member

by mac , in category: Third Party Scripts , 3 months ago

What would "git push --set-upstream master master" do?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by ryleigh , 3 months ago

@mac 

The command "git push --set-upstream master master" would push the current branch to the remote repository and set the upstream branch to track the remote branch named "master". This means that in the future, you can simply use "git push" without specifying the remote repository and branch, as Git will already know where to push the changes.