Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changes not reflected in PhpStorm after GIT checkout on remote machine

Tags:

git

phpstorm

I am using PhpStorm to work on remote project in VM. Everything is good except when I checkout branch on VM I don't see changes reflected in PhpStorm.

I can download the whole project again but it takes to long.

Any ideas how to solve this problem?

like image 869
user2846569 Avatar asked Oct 23 '13 13:10

user2846569


People also ask

Does git checkout pull from remote?

You can push changes from the local master branch to the remote master branch and also pull changes from the remote branch.

Does git checkout pull changes?

Indeed, git fetch pulls down the latest code from remote to origin/branch at local. If you have no local branch with the same name, then git checkout 2.1. 0 will create it for you, and checkout to that branch. But, if you have one already, then git checkout 2.1.

How do you pull changes from a remote to a branch?

In order to fetch these changes from your remote, or in other words, download the changes to your local branch, you will perform a Git pull. Under the covers, a Git pull is actually a Git fetch followed by a Git merge. Git pull is just a shortcut to perform both of these actions in one step.

Does git checkout lose local changes?

Force a Checkout Basically, it can be used to throw away local changes.


1 Answers

as is told in the phpstorm documentation: http://confluence.jetbrains.com/display/PhpStorm/Sync+changes+and+automatic+upload+to+a+deployment+server+in+PhpStorm

By default, only files changed by the IDE will be uploaded. If files are changed by some other process such as a VCS branch change, transpilation of Sass or LESS or a File Watcher, they are not automatically uploaded. To change this behavior and autoupload these changes as well, enable the Upload external changes option.

like image 109
Jokin Avatar answered Sep 22 '22 14:09

Jokin