4 Replies Last post: Oct 28, 2013 5:10 PM by Viet-Hung DO  
Viet-Hung DO Newbie 3 posts since
Oct 25, 2013
Currently Being Moderated

Oct 25, 2013 5:37 PM

How to keep track of recently pushed branch

Hello,

 

I'm wondering how can i push a local branch to a new branch (not the origin) and keep track of this link for the next pushes in the future.

 

For example:

I have my principal branch : master.

I checked out a new local branch from master that i named master_new_feature.

After finishing my modifs, i commit then push that branch. However i want to push to a new branch other than push directly to master.

So i choose the option "Push to alternative branch" and name my new remote branch as its local name: master_new_feature.

The question is, if i continue to work with my local branch, the next time i push, phpstorm propose always master as origin thoughout i pushed a new branch to remote server.

Is there a config i have to do in order to tell phpstorm to memorise that now master_new_feature -> master_new_feature

 

Thans in advance

Laurent Declercq Newbie 5 posts since
Jan 20, 2011
Currently Being Moderated
Oct 25, 2013 7:46 PM in response to: Viet-Hung DO
Re: How to keep track of recently pushed branch

Hello ;

 

You must first checkout master, then create a new branch, then do your modifications, then push. When you'll push, a dialog will be show, which allow you to specify where to push (at bottom of the dialog).

Laurent Declercq Newbie 5 posts since
Jan 20, 2011
Currently Being Moderated
Oct 26, 2013 8:18 PM in response to: Viet-Hung DO
Re: How to keep track of recently pushed branch

Re ;

 

f you are following the steps which I've described, it's done automatically.

More Like This

  • Retrieving data ...