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