Skip to Content
Technical Articles
Author's profile photo PALLAB HALDAR

MTA project Integration with Git in Web IDE: HANA XSA

Today I am going to discuss about the MTA project Integration with GitHub as a source control in Web IDE: HANA XSA.

Before perform the steps, I want everybody know the flow and keep the diagram so that you have a clear concept on this migration –

Integration Steps :

1. Open your project from Web IDE : If the project is not there please create it by importing the file or create it from a MTA project template. You can Clone it from the existing project from a git repository also.

1.Create a Local repository and name it suitable with your project :

2. Configure the remote repository for the local repository :

A. Before you configure the remote repository please log into GitHub using the below URL, create an account and create a repository.

https://github.com/login

Copy the repository URL like below. If you working on direct Master node copy the master node URL. It is preferable to create a branch node and working on it, they you need to copy the URL of branch node.

B. In web IDE , right click on your project and clickGit -> Set Remote and in theConfigure Git Repositorydialog box, enter your GitHub repository’s URL.

3. Configure Stage Layer :

It will automatically fetch the Master node and the branches of the remote repository in your Web IDE.

To make sure the files are staged inside the Git Panel select the checkbox “Stage all”,

Put the commit description and click the commit button.

You can do also using command from terminal –

git init git添加——git commit - m“测试提交”

4. Pull Code from GitHub.

You can pull the data from the GitHub remote repository by either pull or fetch Data. I am going to tell you what is the difference between pull and fetch. Fetch do not change the local dev space artifacts. you can only show the committed changes in remote repo. Better to go with Pull.

You can do pull from Terminal as well.

Pull git remote add projectm https://xxxxxx.git git pull projectm git clone  git fetch git fetch -all git checkout Branch1 git clone —-branch Branch1  git branch –Branch1 $ git checkout -t projectm/Branch1

5. Push Code toGitHuband check the changes in GitHub.

Before Push do Pull from remote to update your code artifacts repeating step 4.

Then Push –

You can do pull from Terminal as well.

Push git remote add projectm https://xxxxxx.git git push -u projectm BranchL :Branch1

In the next chapter inMTA project Integrationwith Git in Business Application Studio.

Assigned Tags

      Be the first to leave a comment
      You must beLogged onto comment or reply to a post.