git push default code example
Example 1: git push default
Possible values: nothing, matching, upstream, current and simple.
Since Git 2.0, simple became the default (replacing matching)
To view the current configuration:
git config --global push.default
To set a new configuration, for example current:
git config --global push.default current
Example 2: git push default
# Configure git to always push to "origin master"
git push -u origin master