Gitwatch is a bash script to watch a file or folder and commit changes to a git repo. I found it while looking for how to automatically commit and push files that changed in a certain folder. Gitwatch is great but I had some trouble finding enough information on how to set it up.
Let's go to the point.
- First of all, you will need a
git
environment configured. The way I recommend to avoid having problems on the next steps is to clone the repository you will be working on using SSH. You can try using HTTP but will probably face the Terminal/Console asking for your Github username and password every time Gitwatch needs to do apush
.
- SSH:
git clone [email protected]:user/repo.git
- HTTPS:
git clone https://github.com/user/repo.git