I decided to get acquainted with git. There are 2 computers (two geographically separated machines), the one-to-one folder with the project (site) is synchronized via dropbox (this is the development version of the project). Hosting is the production version of this project. How to make it so that:
- between local machines, the development version was synchronized one-to-one through git (via the bitbucketa server)
- by excluding unnecessary files from the latest development-version, get production and upload to hosting
At the moment, the development version is on the beatback
I thought so: make 2 remote repositories (on the beatback) for the dev and prod versions. In the local repo will be dev, it will be manually pushed to the remote dev. If necessary (i.e., manually), a certain magic command (set of commands) from the remote dev-repo will take the last option and copy it to the remote prod-repo. From there to the hosting pool. As a result, the chain is as follows: local-repo -> remote-dev-repo -> remote-prod-repo -> hosting. I have all the dev versions locally, on the bitpack - all versions of both dev and prod, on the hosting only the latest version of prod.