And here's my solution to my own thread:
The short:
You can create a git repository in the main directory on your cloud.
There's a global rule on Cloud, that protects .git directories from web access.
To add a remote tracking branch and push/pull over https:
The long:
I'm assuming you want to track CSS/SASS, JavaScript and some static elements with git.
I personally store my static elements in /core/components/static/.
I store my git repos on
bitbucket.org.
Why? Because you get free private repos for a team of up to five members with unlimited storage. That's a great deal.
1. Create a new MODX Cloud instance
2. SSH into that Cloud
3. create a .gitignore file, to filter out untracked files (* ex. see below)
4. in the web root run:
5. change your config by running:
git config --local user.name "Your Name"
git config --local user.email "[email protected]"
6. set your remote tracking branch:
(This example is for bitbucket. You need to create the repo on bitbucket first)
7. Now you can happily push/pull from that cloud
Also you could create a local copy of your MODX install and clone your repository to work locally.
The thing to remember is, that the database is not updated, so for new static elements, you need to either
But for JavaScript, CSS or other files, that don't live in the database, it's a treat!
* My .gitignore template looks like this
# Mac OS X specific
.DS_Store
# ignore everything in this directory
/*
# but not these
!.gitignore
!assets/
!core/
!_SASS/
!_JS/
# ignore assets exept css/, js/
assets/*
!assets/css/
!assets/js/
# ignore everything in core/ exept static/
# to ignore other components add: !core/component/your_component_name
core/*
!core/components/
core/components/*
!core/components/static/