re: Learn git concepts, not commands VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Yep, it considers the current branch (origin/master) as the default if git config --global push.default setting is set to current. This is usually ...

As far as I understood it, the "new" (git 2.0 is from 2014) default is simple.

From the git doc:

When neither the command-line nor the configuration specify what to push, 
the default behavior is used, which corresponds to the simple value for push.default: 
the current branch is pushed to the corresponding upstream branch, but as a safety measure, 
the push is aborted if the upstream branch does not have the same name as the local one.

Of course it may still be that some distro installations either install older versions, or install with a non-default configuration. Somewhat recently having set-up my work laptop on Ubuntu 18.04 I do not recall having to set the push configuration

code of conduct - report abuse