I am using the method I found to pull –rebase by default when doing git pull:
Now I want to make the ‘git pull’ – by default pull only the current branch: How do you get git to always pull from a specific branch?. However this answer does not work when git is configured to rebase by default.
Is there a way to make git pull always rebase and pull only current branch?
Considering this answer mentions:
if you have
branch.autosetuprebase = alwaysthen it will also add:You can, after doing
git branch --set-upstream master origin/master, configure the rebase attribute of your branch: