-1

I have a live test server, and when I type git pull I'd like it to pull from origin develop instead of origin master by default (the live production server pulls by default from origin master). I don't want to have to type it every time.

Is there a way to do that?

mcadio
  • 737
  • 7
  • 27

1 Answers1

0

Just change the upstream tracked branch to develop by running the following command. Then every time it'll pull from develop.

git branch --set-upstream-to origin/develop
Anurodh Singh
  • 814
  • 5
  • 9