Friday, August 22, 2014


What is the relationship among of them? Today I will take about this.

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. GitHub is online project hosting using Git. Includes source-code browser, in-line editing, wikis, and ticketing.Pls don;t confuse these two concept of these two words.

You have 2 ways to work with your JazzHub project sourced in Git
Git command tool from git:  
EGit Eclipse client

Notes:When you install git command tools for windows ,you need to choose to use git from window command promot mode.
After you install the git,you need to do some command after  installation
git config --global "XXXX"
git config --global
git config --global core.editor notepad.exe

You can use git config --list to list all the configuration of git.

 IBM DevOps Services(Old Name JazzHub) is a place where you can collaborate with others to develop, track, plan and deploy software.Lets see how we fork  a jazzHub project and get project use git.

First I will fork  one project in  JazzHub,
Click the  edit code button and it will go to the web edit mode,I click the fork link to one of my project.

You can use get the git url when you click the Git URL link for this project.
We can use the git client tool to get the code on your local side.
Since  manifest.yml recored the bluemix deployment info,we need to change the previous domain and host.The changes like below.
Use the below  command to submit the changes
git commit -m "change deploy conf"
Push the changes to the jazzhub.
c:\nodeJS>git push origin master
Username for ''
Password for '':
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 318 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2)
remote: Processing changes: refs: 1, done
   d47f709..14800f3  master -> master
Open the  manifest.yml again in the jazzhub,you can see the content is already changed.

 After you change the code in WEB-UI,you need to commit the changes on the git.

If you don;t have git client tools you can directly edit the file on the jazzhub web UI.Everytimes when you finish the changes,you need to request a deploy, after that you can see the deployment status.

I go  the bluemix category site,I can directly see the application has already been deployed and also been integrated with GIT.Lets see the application how it look like.
Congulation, you have a basic learn how git,jazzhub,bluemix work together to build a strong collaboration platform to deploy your application.

No comments:

Post a Comment