Use the name of the current branch when pushing by default as the name of the remote branch.
git config push.default current
to set the name of the remote branch to the one of the current local branch as the default.--global
flag to configure this option globally.git config [--global] push.default current
git config --global push.default current
git checkout -b my-branch
git push -u
# Pushes to origin/my-branch
Git, Configuration
Configures the text editor used by git.
Git, Configuration
Disables the default fast forwarding on merge commits.
Git, Configuration
Configures user information for git.