Saturday, March 19, 2016

PhpStorm & SVN: How to fetch remote copy and override the local copy

Leave a Comment

In Zend Studio there is a command "Replace (e.g. file/dir) with latest from repository", which fetch SVN remote copy of file/dir and overrides the local copy.

How can I do the same in PhpStorm?

2 Answers

Answers 1

Fetch last remote copy with "Revert". Keyboard: Choose file -> Ctrl+Alt+Z Mouse: Choose file -> right click -> Subversion -> Revert

Answers 2

I' not sure which repository do you mean :) If you talk about git repository, than:

git fetch --all git reset --hard origin/master 

But be careful, cause all your local changes and commits, which wasn't pushed will be lost.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment