Application version management » History » Revision 2
Revision 1 (Herve Caumont, 2013-10-03 10:50) → Revision 2/5 (Herve Caumont, 2013-10-03 11:35)
h1. Application version management Application version management benefits from different tools available from a Developer Cloud Sandbox. h2. 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. !local-remote.png! h3. Step by step with Git To initialise add 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. Start to save all your files in your /application folder, then type: <pre> [user@sb ~]$ git clone git@github.com:Terradue/geowow-1 /application </pre> Then copy your Application files in your /application folder, and add them in the sandbox's Git version control system: <pre> [user@sb ~]$ cd ~/application/ [user@sb ~]$ git add application.xml yourSubFolder1/ </pre> As a result, this is adding (referencing) file contents to the Git index. To commit your Application in the sandbox's Git version control system: <pre> [user@sb ~]$ cd ~/application/ [user@sb ~]$ git commit </pre> As a result, this is recording changes to the Git repository. 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): <pre> [user@sb ~]$ cd ~/application/ [user@sb ~]$ git clone git@github.com:Terradue/geowow-1 application/ </pre> You'll have to give your certificate passphrase As a result, this is cloning your Sandbox's Git repository to the web-based GitHub repository "geowow-1", under an "application" folder. h2. Using Hadoop runs folders Upcoming!