User Tools

Site Tools


git_on_ibm_i

git on IBM i

With the latest releases of IBM i (I think 7.1 and following) it is possible to install git on IBM i. There are some articles covering how to install it and Aaron Bartell even wrote an article on how to use it with github.com .

I had some problems when I first tried to use git with bitbucket.org .

Shell

One of the first problems is: Which shell should I use? QShell, Bash in PASE, connect via SSH and use Bash?

PASE and SSH seems to work. But never use QShell. QShell behaves most of the time like Bash in PASE but it isn't and there will be some problems. I had my best experience with PASE.

  CALL QP2TERM

SSH Keys

You will need some SSH keys to communicate securely with bitbucket. Key generation is really straightforward.

  ssh-keygen -t rsa -f .ssh/id_rsa

Errors encountered

Host Key Verification Failed

You may encounter this error when you try to communicate with the git server. You need to add the SSH key of the domain to your known_hosts.

  ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts

fatal: fetch-pack: unable to fork off sideband demultiplexer

Seems there is some limitation on resources. My mistake was to have started the QShell instead of the shell in PASE. So moving to PASE solved this problem for me.

Useful Configuration

Shorten Status Output

To shorten the output for the status of the git repository use the following alias:

  git config --global alias.shorty 'status --short --branch'
,
git_on_ibm_i.txt · Last modified: 2017/03/01 19:34 by mihael