On 17 September 2014 22:31:28 BST, Bruno Girin <brunogi...@gmail.com> wrote: >On 17 September 2014 20:47, Gareth France <gareth.fra...@gmail.com> >wrote: > >> >> Not helpful for solving the immediate problem I know, but for the >>> future the issue would be easy to solve if you kept a master copy of >>> your source in a version control system such as git. Then if the >site >>> becomes compromised you can just replace it with the correct code. >>> Git is trivially easy to setup and start using. >>> >>> Colin >>> >>> I have taken a quick peek and it says git-hub is free for public, >open >> source projects. I of course require private hosting as I wouldn't >want >> people to peek behind my site. So is there a free option for doing >this? I >> really don't have a budget for doing this sort of thing. > > >Gitlab [1] is an open source alternative to Github and has unlimited >free >private repositories. It is not as full featured as Github especially >in >the team collaboration area but is more than enough for your use case. >It >takes 5 minutes to create a repo and the only gotcha is how to generate >an >SSH key to let git interact with it, which is explained in their help >pages >[2]. If you need more help with git, the git book [3] is available >online >for free. > >Using a VCS like git takes a bit of practice but once you're used to >it, it >is very liberating to know that you always have a golden master and >that >you can roll back any changes should you need to. > >[1] https://gitlab.com/ >[2] https://gitlab.com/help/ssh/ssh.md >[3] http://git-scm.com/book > >Bruno >
I recommend the Git book, when you have several hours free. I also recommend making lots of commits. I keep forgetting to commit often enough, then it's a bit of a pain to split up the changes I've made into the right commits. You can easily join multiple commits into one bigger one, but it can be tricky to split a larger change up into smaller bits. Neil -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/