Difference between revisions of "TheMagPiGit"

From eLinux.org
Jump to: navigation, search
(Tools for Raspberry Pi or VirtualBox)
(Tools for Raspberry Pi or VirtualBox)
Line 18: Line 18:
 
Several people would rather not read the [http://git-scm.com/book/en/ git book].  Therefore, some scripts were written to simplify the usage slightly.
 
Several people would rather not read the [http://git-scm.com/book/en/ git book].  Therefore, some scripts were written to simplify the usage slightly.
  
* Download [https://www.dropbox.com/s/ydtv56zlod95ptg/mp-git-20120209.tar.gz mp-git-20120209.tar.gz] from the DropBox.
+
* Download [https://www.dropbox.com/s/brfw9ctvw7ftf8o/mp-git-20120209.tar.gz mp-git-20120209.tar.gz] from the DropBox.
 
* Unpack it,
 
* Unpack it,
 
<pre>
 
<pre>

Revision as of 02:10, 9 February 2013

TheMagPi.png

Main Readers Authors Volunteers Sponsors Advertising Translations


Setting up access

  • The first step is to create a github account. Then for those on the MagPi layout team, email the editor for permission to join the github organisation.
  • Since the Raspberry Pi does not have a great deal of processor power, it is better to use the command line tools to access github. For OSX and Windows there are GUI tools available for download on the github site.


Tools for Raspberry Pi or VirtualBox

Several people would rather not read the git book. Therefore, some scripts were written to simplify the usage slightly.

tar xvfz mp-git-20120209.tar.gz
  • Install it,
cd mp-git
source install.sh
  • Then use the commands as needed. The commands are,

mp-git-setup.sh

Type

mp-git-setup.sh 

to install and configure git. The script has no action if the installation and configuration is already okay.

mp-git-clone.sh

Type

mp-git-clone.sh

to check out the shinything repository. The script will not check out the repository again if a local copy already exists in the present working directory.

mp-git-commit.sh

Type

mp-git-commit.sh 'A message goes here'

where the string 'A message goes here' should be replaced with a sensible and informative message. The script adds any new few files, commits to the local repository, fetches and remote changes and then merges the local changes into the remote repository. (Git does not allow empty directories to be added)

mp-git-update.sh

Type

mp-git-update.sh

to update the local copy with any changes from the github repository.