Version control with Git and Bitbucket

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 ""
$ git config --global "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
$ 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.