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?

  • And why use a remote server for development, on the local machine does not work? - Evgeny Gavrilov
  • @ Yevgeny Gavrilov is just more convenient, and it works more efficiently than the local machine, and the Internet channel is bigger - users
  • one
    sshfs + git worktree . - 0andriy
  • @ 0andriy hmm, if I understand you, that is, we will mount our folder with the project to the local machine and with the git worktree on the local machine, do we synchronize actions in 2 directories? - users
  • one
    git worktree when 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

0