Application version management » History » Version 1
Herve Caumont, 2013-10-03 10:50
| 1 | 1 | Herve Caumont | h1. Application version management |
|---|---|---|---|
| 2 | |||
| 3 | Application version management benefits from different tools available from a Developer Cloud Sandbox. |
||
| 4 | |||
| 5 | h2. Using Git |
||
| 6 | |||
| 7 | Git is a distributed version control and source code management system with an emphasis on speed. |
||
| 8 | 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. |
||
| 9 | |||
| 10 | 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. |
||
| 11 | |||
| 12 | 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. |
||
| 13 | |||
| 14 | !local-remote.png! |
||
| 15 | |||
| 16 | h3. Step by step with Git |
||
| 17 | |||
| 18 | To add your Application in the sandbox's Git version control system: |
||
| 19 | <pre> |
||
| 20 | [user@sb ~]$ cd ~/application/ |
||
| 21 | [user@sb ~]$ git add application.xml yourSubFolder1/ |
||
| 22 | </pre> |
||
| 23 | |||
| 24 | As a result, this is adding (referencing) file contents to the Git index. |
||
| 25 | |||
| 26 | To commit your Application in the sandbox's Git version control system: |
||
| 27 | <pre> |
||
| 28 | [user@sb ~]$ cd ~/application/ |
||
| 29 | [user@sb ~]$ git commit |
||
| 30 | </pre> |
||
| 31 | |||
| 32 | As a result, this is recording changes to the Git repository. |
||
| 33 | |||
| 34 | To push your application on the web, on a dedicated GitHub repo (here a GitHub private repo provided by Terradue to Sandbox users, https://github.com/Terradue/geowow-1): |
||
| 35 | <pre> |
||
| 36 | [user@sb ~]$ cd ~/application/ |
||
| 37 | [user@sb ~]$ git clone git@github.com:Terradue/geowow-1 application/ |
||
| 38 | </pre> |
||
| 39 | |||
| 40 | You'll have to give your certificate passphrase |
||
| 41 | |||
| 42 | As a result, this is cloning your Sandbox's Git repository to the web-based GitHub repository "geowow-1", under an "application" folder. |
||
| 43 | |||
| 44 | h2. Using Hadoop runs folders |
||
| 45 | |||
| 46 | Upcoming! |