Tested on:Raspberry Pi 2; Raspberry Pi B+; Raspbian pre Jessie
Prerequisites:Raspberry Pi with Raspbian Jessie and internet connection (see steps 1-7 in the Introduction)

Manage Raspberry Pi python projects on GitHub

GitHub is a gigantic code hosting platform for (mostly) open source and is built on the version management tool git. Share code with others, find interesting projects and extend them: GitHub is great. First, create an account on GitHub.

Configure Git
Configure git by entering

in the terminal.

Create a new repository on GitHub
Login on GitHub.com and click on New repository in the bottom right corner of the GitHub welcome screen, then name the project MyProject.

Screenshot of GitHub.com with New-Repository button

New repository button

Create a local git repository
Download the sample project and initialize it as a git repository with

Connect the repository with GitHub

Omit files from version control(optional)
Files can be ommited from version control by writing them into a file named .gitignore:

Add the project content
To add all files in the current directory, type

Submit changes
Perform these two steps for all major changes of the project with a short description of the changes as commit message:

A GitHub username and password will be requested.

Screenshot github repository of sample python project

Github repository of sample python project

Show status information

To revert the changes of the last commit irreversibly, type

Find out more about version management and shared development on the GitHub help resources or setup a private git repository.

GitHub Website: https://github.com/
Python sample project: http://www.knight-of-pi.org/standard-python-project-file-setup/
GitHub help resources: https://help.github.com/
Private git repository tutorial: http://www.knight-of-pi.org/arrr-my-treasure-a-private-raspberry-pi-git-repository/

Knight of Pi

Johannes Bergs aka Knight of Pi. Diploma in Bioinformatics, some Webdesign and Python coding then. Living in the beautiful city of Vienna.


Time limit is exhausted. Please reload CAPTCHA.