The Integration blog covers the latest in product updates, best practices, customer stories, and more.

  • September 29, 2015

SOACS plus DevCS - Chapter 04

In this series of posts and videos, we will explore creating and deploying a SOA composite using Oracle Developer Cloud Service.

< Previous Chapter | Next Chapter >

Chapter 04 - Cloning Git Repository

You can find your repository URL from the DevCS project page. There are two options: HTTPS and SSH. Both are encrypted and secure. If you followed the previous chapter and created SSH keys, then you will want to use the SSH repository URL:

git clone ssh://identity_domain.user_name@oracle/project.git YourProjectDirectory

As mentioned in the previous chapter, if your user name is your email, you may have to quote the '@' symbol.

If you are new to git, you have some reading to do.  The primary thing to remember, is that git is distributed. This means there are two repositories: your local repository you keep modifying and the remote repository to which you eventually "push" your local changes. Just like any other concurrent source control system, other people may be "pushing" their changes to the remote repository while you are working on your changes, so you will have to periodically "pull" or refresh your local repository from the remote one. Unlike most source control systems, however, your local repository is completely disconnected and independent of the remote one.

If you choose to use gitflow (I recommend using some software to manage the git workflow over using raw git commands), now is the time to initialize the repository (for more information on what giflow is and what it does, see this nice looking flow chart):

git flow init -d

The '-d' option accepts the default values which creates a "develop" branch in your local source control repository which you should see by running the following command:

git branch -a

Now we need to push this branch to the remote repository (whose name defaults to "origin"):

git push origin develop

You should now see the "develop" branch in the remote repository in addition to the local repository:

git branch -a

If you have any existing files, now is the time to copy them to the local directory, commit them to the local repository, and then push them to the remote repository:

git add --all

git commit -m "initial commit"

git push

Many IDEs integrate with Git, including JDeveloper.  See this instructional video on how to configure JDeveloper to talk to DevCS.

While Linux is used in the video series, all mvn and git commands are applicable to Windows.  Any variations will be called out in the accompanying blog.

Helpful links:

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha