Now that I have a simple website up and running it is time to backup my work. Initially I was planning to backup my project using Dropbox or Box, but I decided that it is worth the bit of extra effort to setup Git and get the benefits of a version control system. I decided to go with Bitbucket instead of GitHub because Bitbucket allows you to create free private repositories.
The first step was to install and configure Git:
$ sudo apt-get install git $ git config --global user.email "firstname.lastname@example.org" $ git config --global user.name "Your Name"
Next, I committed my files to a new Git repository and pushed it to Bitbucket:
$ cd /path/to/your/project $ git init $ git remote add origin https://email@example.com/your-username/your-project.git $ git add -all $ git commit -m 'initial project commit' $ git push -u origin master
Now my project is backed up, version controlled, and easily accessible from any computer.