Project

General

Profile

Actions

Application version management

Application version management benefits from different tools available from a Developer Cloud Sandbox.

Using Git

Git is a distributed version control and source code management system with an emphasis on speed.
Every Git working directory is a full-fledged local repository with complete history and full version tracking capabilities, and thus not dependent on the network or a central server.

We will describe here how to setup a Git working copy of an application folder, locally to a Sandbox, and how to push it to a GitHub code repository, for application sharing and collaborative development environment on the Web.

GitHub (http://github.com) is a web hosting service for software development projects, that uses the Git version control system. The service provides social networking tools such as feeds, watchers, and a social network graph to visualize how developers exploit their versions of a repository.

Step by step with Git

To initialize your Git local repository, with a synchronization to a web backup repository (GitHub), one option is to start from a repository previously initialized for a Sandbox project on Terradue's GitHub.

Start to save all the files of your /application folder.
Then ensure you have a clean, empty /application folder.

[user@sb ~]$ cd /application
[user@sb ~]$ ls -al

Then type:
[user@sb ~]$ git clone git@github.com:Terradue/geowow-1.git ./

You'll have to give your certificate passphrase.
As a result, this is creating the Sandbox's Git repository (.git) under your "application" folder, with synchronization to the web-based GitHub repository "geowow-1".

From working directory to staging area

Then copy your Application files back in your /application working directory.
Add your Application files in the sandbox's Git version control system:

[user@sb ~]$ cd /application
[user@sb ~]$ git add application.xml yourSubFolder1/ 

As a result, this is adding (referencing) file contents to the Git index (staging area).

From staging area to local repository

To commit your Application in the sandbox's Git version control system:

[user@sb ~]$ git commit

As a result, this is recording files changes to the Git local repository.

From local repository to remote repository

To push your application on a webbackup area, for example on a dedicated GitHub repo (here the GitHub private repo https://github.com/Terradue/geowow-1 provided by Terradue to Sandbox users):

[user@sb ~]$ git push

As a result, this is updating the remote repository with the files changes from the Git local repository.

Using Hadoop runs folders

Upcoming!

Updated by Herve Caumont about 11 years ago ยท 5 revisions