Versions Compared

Key

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

Maintaining versions of your code is important in a modern development environment. Git can be installed via a PTF: 5733OPS, option 6.

...

  1. Create a repository on your local-network or on a cloud service 
  2. Install Profound.js on your local machine
  3. Clone your repo within your Profound.js installed on your local machine, with a final parameter of 'modules - which tells the clone to 'clone' into the modules folder: git clone https://github.com/user/myproductmodules.git modules
  4. Run through Step 1 and Step 2 in the Profound.js Debugging with VS Code guide to run code locally
  5. Make commits back to the repo as normal.

Note: I found that adding "modules" on the git clone command is problematic.  Instead first change directory into the modules folder and then run the clone command git clone https://github.com/user/myproductmodules.git  

This wlll create the git repository in a sub-folder within modules.

Pulling the changes onto your IBM i

  • Clone your repo within your Profound.js installed on your IBM i, with a final parameter of 'modules - which tells the clone to 'clone' into the modules folder: git clone https://github.com/user/myproductmodules.git modules
  • Use git pull every time you'd like to pull new commits down to your IBM i.