Your Divio Cloud project is a Git repository.
This has many advantages:
- fine-grained revision control
- excellent collaboration opportunities
- easy export and replication
The Divio App application uses Git behind the scenes to
pull changes when you Upload and Download your project code.
Using Git manually
You can also use Git manually from the command-line while working to the same effect. Just treat the project as a standard Git repository, and push and pull as you would normally.
Push your changes to the Cloud
If you have made some local changes and want to push (i.e. upload) them to the Cloud, the basics steps you need are:
git statusto see the changed files
git add <file1> <file2>(etc) to stage the changes (alternatively, you can do
git add .to stage everything)
git statusto make sure everything has been staged
git commit -m "Updated templates"to commit the changes
git push origin developto push your local changes to the origin (i.e. our server)
Pull changes from the Cloud
Note that a number of directories are excluded (using
.gitgignore) from the project:
.env- the project's virtualenv, for software installed using
data- temporary file storage.
static_collected- processed static files
node_modules- for frontend frameworks