git push autoSetupRemote #git #opensource

preview_player
Показать описание
Want an easier way to push branches in Git?

Normally when you create and checkout a branch, make a commit, and then try to push it upstream -- you'll get an error. This is because the branch name does not yet exist on the remote server.

I always just copied & pasted the line provided to setup the remote branch, but this is repetitive and totally not needed, because there is a much better way.

Just run the following command:

Now, when you create a new branch and issue a "git push", this git config will be applied, and Git will automatically create the related remote branch and upload it to the remote server -- without you needing to do anything else.

#git #opensource
Рекомендации по теме
join shbcf.ru