Application version management » History » Revision 2
« Previous |
Revision 2/5
(diff)
| Next »
Herve Caumont, 2013-10-03 11:35
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 initialise 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:
[user@sb ~]$ git clone git@github.com:Terradue/geowow-1 /application
Then copy your Application files in your /application folder, and add them 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.
To commit your Application in the sandbox's Git version control system:
[user@sb ~]$ git commit
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):
[user@sb ~]$
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.
Using Hadoop runs folders¶
Upcoming!
Updated by Herve Caumont about 11 years ago · 2 revisions