Set upstream when pushing new branch to server

779 views
Skip to first unread message

petrhlavka

unread,
Jun 3, 2011, 3:00:49 AM6/3/11
to tortoisegit-users
Hello all,

I usually use following approach for creating branch in remote
repository

git checkout -b new_branch master
git push --set-upstream origin new_branch

I would like to do this also by using TortoiseGit. However, I haven't
found an easy way how to do the '--set-upstream' behaviour. I'm able
to create local branch, push it to the server, but the local branch is
not tracking the server one. I have to either edit the .git/config or
switch to another branch and recreate the new_branch with Track
option. Please, is anyone using some more convenient way of doing
this?

Thanks, Petr Hlavka.

ch3c...@gmail.com

unread,
Nov 10, 2012, 11:42:32 PM11/10/12
to tortoise...@googlegroups.com
Hi,

Push dialog has "set upstream" checkbox.
Checkout dialog and Create Branch dialog have "track" checkbox.

petrhlavka於 2011年6月3日星期五UTC+8下午3時00分49秒寫道:
Reply all
Reply to author
Forward
0 new messages