You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 23 Current »

Overview

There is now a Git repository on Technology Nursery for use by TSSG members.  The git server was created using Carlos Bernárdez's git-server-docker image.  To access the repository, send me your SSH public key by attaching it to an email.

Instructions on locating or creating your SSH public key can be found in Connecting to GitHub with SSH.

Step-by-step guides

Prerequisites

Verify access to git server

  • ssh git@technologynursery.org -p 2222
    ...
    Welcome to git-server-docker!
    You've successfully authenticated, but I do not
    provide interactive shell access.
    ...

Refreshing your ssh cached entry for our git server

Our git-server had been upgraded back on 2018-12-05.  This caused a change in the server's private key.  If you haven't connected to the server since then, your ssh will complain about the server's identity not matching that in the known_hosts file.

  1. Clear out your known_hosts file of the invalid server certificate entries:
    1. ssh-keygen -R technologynursery.org
    2. ssh-keygen -R [technologynursery.org]:2222
  2. Follow the steps within Verify access to git server.

How to create a new repository

  • cd myrepo
  • git init --shared=true
  • git add .
  • git commit -m "my first commit"
  • cd ..
  • git clone --bare myrepo myrepo.git

List available repositories

Must have a user account on server s14.

  • ssh s14 "ls /home/ralph/Projects/git-server/repos/"

How to upload (publish) a repository

Must have a user account on server s14.

  • scp -r myrepo.git <user>@technologynursery.org:/home/ralph/Projects/git-server/repos

How to clone a repository to your local machine

Prerequisites

  • Your SSH public key must have been posted to Git Server
  • Add this to ~/.ssh/config

    ~/.ssh/config
    Host g14 tssg
    Hostname technologynursery.org
    Port 2222
    User git

Clone Examples

Execute these in the directory in which you wish to base your local repository (example: ~/Projects)

  • git clone ssh://git@technologynursery.org:2222/git-server/repos/tssgTech.git

or

  • git clone ssh://tssg/git-server/repos/tssgTech.git

or

  • git clone ssh://g14/git-server/repos/tssgTech.git



Currently Available Git Repositories

On 2020-05-19, these are the available repositories on our remote, private, git server:

  • LeaseLine.git: Ralph A. Navarro Jr. mobile application to assist drawing the line on automobile lease costs.

  • tssgTech.git: Web Project's tssg.tech web site.

  • tssgTechBackup.git
  • tssgTechOriginal.git:
  • tssgTechPoc.git:
  • tssgWebflow.git:
  • jenkinsJobs: Backups of changed Jenkins Jobs are committed every week on Wednesday at about 01:35 AM

Related articles

There is no content with the specified labels



  • No labels