I use PyCharm and a remote server for development with the help of the deployment function in PyCharm , but sometimes there are problems with migration files and there are a lot of problems when switching between branches, because you have to switch 2 times right away, on the local machine and on the server you also need to reset all changes on the server before changing branches.
Question: How can I synchronize git on the local PC and on the server or maybe there are other ways to solve it?
git worktree. - 0andriygit worktreeon the local machine, do we synchronize actions in 2 directories? - usersgit worktreewhen trying to work with an index will read or save objects remotely, while the working tree that you edit and compile will be local, i.e. quickly and without a network! - 0andriy pm