Version control for shell scripts Version control for shell scripts unix unix

Version control for shell scripts


Yes, use version control. But rather than ask such an open-ended question on SO, try using google.

SVN is a good choice, and many say it is conceptually simpler than git, so go with that at least at first. Once you've got the idea of storing data in a central repository you can then understand the next steps. Start with simply storing your scripts in the repository to keep a historical backup, once you've got the hang of that, then you can consider developing scripts on 1 machine and using the SCM to checkout on the servers. Branching and merging can come later once you're happy with the basic workflow.

You can use Trac or Redmine with SVN, both are really good bugtracking, project management tools. Just use whichever you prefer the look of.

The SVN redbook is the place to start, it talks you through the beginners usage.