C
C
Crash2018-04-09 17:51:43
git
Crash, 2018-04-09 17:51:43

Can NetBeans be configured to automatically overwrite local files when changing a git branch on a remote server?

Probably a lot of people work this way: the project, along with all the necessary environment, is deployed on a test server running a linux system. To work in the IDE (I use NetBeans), a local copy of the project is created, downloaded from the test server. After each save of a file, it is automatically uploaded to the test server.
Here I see the problem in that such a system does not work in the opposite direction - if the file is changed on the remote server, it is not automatically downloaded to the local copy. This could theoretically create problems when frequently switching between git branches - a file from one branch can be accidentally overwritten when working on another branch, when the project's file systems are different on the test server and the local copy. Now at work we try to adhere to the git flow model, when a separate branch is created for each task.
How do you solve this problem? Can my favorite NetBeans be configured to automatically overwrite the local copy when changing branches on the remote copy of the project? Of course, Phpstorm will now advise me, how much is this problem solved there?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DVamp1r3, 2018-04-09
@DVamp1r3

Can. In the project properties, you can set up synchronization via ftp / sftp
5acb802bc18be669317152.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question