Marcin Szawurski
Marcin Szawurski

Reputation: 1333

How to set default remote ref in TortoiseGit?

How can I change default remote ref for TortoiseGit push dialog? It is normally master. I can change it to refs/for/master always when I push from combo or keyboard and it works, but I would like to stay the ref of my choice there. How can I do this?

TortoiseGit push dialog

Upvotes: 12

Views: 5529

Answers (2)

Seidleroni
Seidleroni

Reputation: 1044

For me the accepted answer did not work. Instead I went to the Remote settings and selected "Push default" on the default remote item (as shown below).

enter image description here

Upvotes: 5

koffeinfrei
koffeinfrei

Reputation: 2045

It seems to me that the checkbox "Always push to the selected remote branch for this local branch" should do this.

Upvotes: 10

Related Questions