User Tools

Site Tools


wphase:repository

This is an old revision of the document!


Using Git for W-phase

W-phase Index

Configure ssh-keys for GitHub

Make sure your version of Git is OK

You need to have a version of Git greater or equal to 1.7.10, thus type:

git --version

and if the version number displayed is 1.7.10 or greater everything is OK, otherwise you need to install a more recent version.

One-time configuration for each repository

The W-phase package is hosted as a github repository. To clone the W-phase repository:

git clone https://github.com/eost/wphase.git wphase_package

If you have an error like

error: The requested URL returned error: 403 while accessing https://github.com/eost/wphase.git/info/refs

please make sure to update git to version 1.7.10 or later (see above), otherwise use

git clone https://yourusername@github.com/eost/wphase.git wphase_package

Regular daily usage

To update your local W-phase repository (pull changes)

cd /to/the/wphase/directory/
git pull origin master

To display the differences with the current HEAD commit, use:

git status

To prepare the content staged for the next commit, use:

git add files_for_the_next_commit

To store the current contents of the index in a new commit, use:

git commit -m "log message describing the changes"

To update the github W-phase repository after commit(push changes):

git push origin master
wphase/repository.1422028350.txt.gz · Last modified: 2015/01/23 16:52 by wphase