I want to be able to access a folder (offline) with all my web stuff in there. Then when I get a connection to the Raspberry Pi, I want it to sync from my mac to the pi. Basically, I want to be able to work offline and be able to upload my file to the Apache web server, in /var/www. FileZilla using sFTP doesn't work, loads of file transfer errors (i have permission to edit the files without sudo in ssh).
You might be able to this by setting up a local git server on your pi.
Git is a version control system that is built around a branch-merge control system. This basically means that when you're working on a feature for your project you edit a local 'branch' of the repository, which stored on your device. This local branch is essentially a copy of the master branch which is on the git server. When you're done, you can 'merge' your local branch into the master branch.
This makes git a popular choice for repository management for a couple of reasons:
- Because you are working on branches, you can easily revert your code back to what is on the master branch.
- Many people can work on multiple branches which git can magically merge back into the master branch.
- Version control means you can revert to any previous point in the repository.
For more information you can visit git's website here