How to use Git to manage your project¶
The Divio app, our desktop application for project management, also usesGit behind the scenes for its Upload and Download operations.
If you are familiar with Git, then all you need to know is that your project is a completelystandard Git repository, and:
- our Git server is git.divio.com
If you have made some local changes and want to push (i.e. upload) them to the Cloud, the basicsteps you need are:
- git status to see the changed files
- git add
(etc) to stage the changes (alternatively, you can do git add .to stage everything) - git status to make sure everything has been staged
- git commit -m "
" to commit the changes (provide a meaningful message foryour own benefit) - git push origin develop to push your local changes to the origin (i.e. our server)
Pull changes from the Cloud¶
Excluded directories¶
- .env - the project’s virtualenv, for software installed using pip
- data - temporary file storage
- static_collected - processed static files
- node_modules - for frontend frameworks
- .env-local