Use GitHub for geWorkbench Development

From Informatics

Jump to: navigation, search

For the minimum knowledge about Git, please read what git is.

Contents

Get the code repository

0. Download GitHub

From https://help.github.com/articles/set-up-git

1. Clone the repository and fetch

You should clone by e.g. git clone https://github.com/zhouji2013/geworkbench-web before you actually fetch the code as following. Or, from the web interface, click on the button "Clone in Desktop".

From command line,

$ cd my-git-directory
# Changes the active directory in the prompt to the newly cloned "my-git-directory" directory
$ git remote add my-project https://github.com/my-username/my-project.git
# Assigns the original repository to a remote called "my-project"
$ git fetch my-project
# Pulls in changes not present in your local repository, without modifying your files

Using eclipse

If you need to work on the code in Eclipse.

0. Download GitHub plugin from http://eclipse.github.com/ Use the following URL to install both Eclipse Git Team Provider and JGit from inside eclipse

URL http://download.eclipse.org/egit/updates/

1. clone the repository

File -> Import -> Git -> Project from Git -> Clone URI -> https://github.com/zhouji2013/geworkbench-web

Change the protocol from https to git before continuing.

keep track of your own developing work

  • select the new work - files or directories
  • right click: Team -> Commit

contribute your work

  • select the project (Please note this is important. You cannot continue if you select a individual file.)
  • right click: Team -> Remote -> Push

remove sensitive data

This is not something you have to do often, but it is very important. https://help.github.com/articles/remove-sensitive-data

Personal tools