I am trying to set up a workflow that with auto-merge to master.
For that, I am working locally on a branch called dev-oshai
, and want to push always to that branch on the server with: git push
When I want to pull changes I want to always pull them from master
(CI will auto-merge changes to master from all developers).
For that I am using the command git pull --rebase origin master
More context and details here: https://medium.com/@OhadShai/git-mono-branch-workflow-pre-tested-commits-4b34949310ad
Is it possible to configure git that the default pull branch will be origin master
so that git pull
will work without always specifying the branch?