How do I get git to stop "lying" to me about being up-to-date with a remote branch? -


By my god machine, I pushed my new comment on the original / test branch Now I need to drag that code into the deployment machine, so I checked the test branch like this:

  $ git checkout test  

I had to be on the test branch already, so I got this message:

  already on 'test'  

but I also this message Lights, which (on the surface) is very confusing:

  is up-to-date with your arm root / test '.  

My branch, in fact, is not updated with version of original / test which is on bitspace. I just pushed new commands, finally!

I realize that I am receiving this message because my local copy is up-to-date with test my local copy Basic / Testing , but I do not consider the information which is not useful in this context, and it is very easy to misinterpret this message that my local copy is test today With a copy of Remote to Basic / Test , even if it is not .

Is it possible to silence only this message "Your branch up-to-date" message? The way I use this deployment machine does not bother me anymore, so seeing only gives confusion and frustration.

I think you can bet on your git fetch , To synchronize your origin / * with remote.

Edit:

Or you can make a nickname for each checkout before fetch :

  Git config --global alias.fco '! Git fetch & amp; Amp; GIT checkout ' 

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -