R
R
romancho3542018-08-07 11:17:24
git
romancho354, 2018-08-07 11:17:24

How to properly sync Phpstorm with Git?

Welcome all.
Essence of the question. There is a project on a remote (test server). GIT is initialized and running on it. In daily work up to 100 branches. A project was started on the local computer and, accordingly, Storm copied the project files to a local folder. When switching branches on a remote server, garbage begins to accumulate in the local folder of the project: files and folders that do not belong to this branch, included on the server. Constant messages about the necessary merge. It gets to the point that after each rebase or pull master, I just copy the project again to a local folder. Well, I would like Storm to see the remote GIT inside himself.
How did you solve such a problem? Sync works mysteriously, but not correctly (the project tree is not updated if you change the remote branch).
How did you solve such a problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2018-08-07
@VladimirAndreev

are you synchronizing .git?
maybe git clone? =)

A
Alexander Movchan, 2018-08-07
@Alexander1705

git checkout -f . && git clean -df

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question