If you are new to hosting your code, code management with distributed version control systems (DVCS), or either Git or Mercurial, this Bitbucket 101 tutorial gives you a taste of all of them. In this tutorial, you'll first install both Git and Mercurial for your operating system. You'll do some work using both Git and then Mercurial. Throughout, you'll use the hosted code management system that is Bitbucket. The tutorial consists of the following pages:
- Set up Git and Mercurial on Windows (or Mac OSX or Linux)
- Create an Account and a Git Repo
- Clone Your Git Repo and Add Source Files
- Fork a Repo, Compare Code, and Create a Pull Request
- Add Users, Set Permissions, and Review Account Plans
- Set up a Wiki and an Issue Tracker
- Set up SSH for Git
- Mac Users: SourceTree a Free Git and Mercurial GUI
- Sourcetree Git GUI on Windows
The tutorial teaches you some simple DVCS workflows using basic Git and Mercurial commands.
How to work through the tutorial
If you are totally new to DVCS and/or Bitbucket, you should work through each page sequentially as each new page builds on the material from the previous pages. If you prefer to learn the tools before working through this tutorial, you can learn more about Git here. To learn more about Mercurial, visit Mercurial's website. To learn more about DVCS in general, see Getting Started with Git and Mercurial.
At the end of each page is a Next section directs you to the next tutorial page. If you get lost you can use the navigation bar (to your left) to locate the next page. If you feel confident skipping pages or just going to the pages you need, feel free to do that too.
Start the tutorial with Set up Git and Mercurial. If you want to skip the tutorial all together, You might be interested in: