Git is a distributed revision control system designed and developed by Linus Torvalds. Every Git clone is a full fledged repository with a complete history and full revision tracking capabilities, not dependant on network access or a central repository server.

More information can be found at:

Create a git repository in Bitbucket

Bitbucket is a web based hosting service that is owned by Atlassian, used for source code and development projects that use either Mercurial or Git revision control systems. Bitbucket offers both commercial plans and free accounts. It offers free accounts with an unlimited number of private repositories which can have up to five users in the case of free accounts.

The total repository size has a soft limit of 1 GB.

Operating system used

Software prerequisites

  1. Lets assume you created a project called: ~robertlie/mobilefish_web_files
    It it recommended to use a single word projectname.

    This project contains multiple subdirectories with one or more files in each subdirectory.

    You now want to version control your project by creating a git repository in Bitbucket.

  2. Create a Bitbucket account and login.

  3. In the Bitbucket environment create a repository with the same name as your project: mobilefish_web_files

    This repository can be accessed with URL:
    https://[email protected]/your_bitbucket_username/

  4. Enter the following commands:
    • Type: cd mobilefish_web_files
    • Create a mobilefish_web_files/.gitignore file.
      Add the following line in the .gitignorefile file.
      In this example .DS_Store will not be version controlled:

    • Type: git init
    • Type: git add .
    • Type: git commit -m "Initial version"
    • Type: git remote add origin https://[email protected]/your_bitbucket_username/ mobilefish_web_files.git
    • Type: git push -u origin master

  5. Your local mobilefish_web_files project is now uploaded to the remote repository and git version controlled.