Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Excerpt

Contains how-to information referenced from other chapters in this guide.

...

Table of Contents

...

Source Download

Include Page
_download_and_install_source
_download_and_install_source

Anchor
how-to-git-cheat-sheet
how-to-git-cheat-sheet

Git Cheat Sheet

Download Git Tools

Refer to Git Tools Download.

Set-Up Git Environment

Refer to GitHub Documentation

Setup ssh Keys

Refer to ssh Keys.

Fork Trafodion Source Tree

Code Block
languagebash
titleExample
trafdeveloper_fork

Clone Repository

Do the following:

Code Block
languagebash
# Move to the directory where you want to install the Trafodion source code.
cd mysource

# Clone the Trafodion source code
git clone git://git.apache.org/incubator-trafodion.git

# Register your fork as a remote branch
git remote add <your-git-id>_fork git@github.com:<your-git-id>/incubator-trafodion
Code Block
languagebash
titleExample: Clone Repository
# Move to the directory where you want to install the Trafodion source code.
cd mysource

# Clone the Trafodion source code
git clone git://git.apache.org/incubator-trafodion.git

# Register your fork as a remote branch
git remote add trafdeveloper_fork git@github.com:trafdeveloper/incubator-trafodion

Create Task Branch

Do the following:

Code Block
languagebash
# Ensure that you have the latest changes
git fetch --all

# Checkout source
git checkout -b TRAFODION-<jira-number> origin/master
Code Block
languagebash
titleExample: Create Task Branch
# Ensure that you have the latest changes
git fetch --all

# Checkout source
git checkout -b TRAFODION-1507 origin/master

Commit Changes

Do the following:

Code Block
languagebash
# Commit changes
git commit -a

# Dry-run check against main branch
git push -n <your-git-id>_fork HEAD

# Push changes to your private fork
git push <your-git-id>_fork TRAFODION-1507
Code Block
languagebash
titleExample: Commit Changes
# Commit changes
git commit -a

# Dry-run check against main branch
git push -n trafdeveloper_fork HEAD

# Push changes to your private fork
git push trafdeveloper_fork TRAFODION-1507

Create Pull Request

Do one of the following:

  • Issue a git pull-request from the git shell.
  • Generate the pull request using the GitHub web interface.
Code Block
languagebash
titleExample: Create Pull Request
git pull-request

Checkout Code

Do the following:

Code Block
languagebash
git checkout TRAFODION-<jira-number>
Code Block
languagebash
titleExample: Checkout Code
git checkout TRAFODION-1507

 

 

Anchor
how-to-build-tools-manual-install
how-to-build-tools-manual-install

Build Tools Manual Install