A quick aide-memoire for using GitHub:
Create directory with ‘Project Name’ in Dropbox directory (extra layer of automated backup)
cd ‘Project Name’
git init
Create / copy initial files
Create .gitignore file for Project
git add [Files – if all can use .]
git status [Check correct]
git commit -m “First Commit”
Go to github.com and create a new remote repository with the same name as ‘Project Name’
Add github remote directory to local configuration
git remote add origin https://github.com/username/Project Name.git
git push -u origin master
Goto to Raspberry Pi
git clone git://github.com/[username]/[Project Name].git
This will create a directory with ‘Project Name’ on the Pi
In use
Edit file(s) on a computer. On that computer:
git add [Files – if all can use .]
git status [Check correct]
git commit -m “Further Commit”
git push -u origin master
On other computer:
git pull