Make git push set the upstream automatically
Run git config --global push.autoSetupRemote true once, then a plain git push will create and track a matching remote branch.
2 posts
Run git config --global push.autoSetupRemote true once, then a plain git push will create and track a matching remote branch.
Adding the current Git branch to Bash PS1 without breaking prompt width calculation.