Git Repository Setup

From wikidb
Jump to: navigation, search

Local Repository Configure

 $ cd ~/catkin_ws/src/host
 
 $ git init
     initialized empty Git repository in /home/eepp/catkin_ws/src/host/.git/

The follow put configuration preferences in ~/.gitconfig

 $ git config --global user.email "xxx@yyyyy.net"
 
 $ git config --global user.name "Ed C. Epp"
 
 $ git config --global core.editor emacs

Create RSA Key

Generate Key Pair

IMPORTANT: When I reinstalled Ubuntu in January of 19 I entered the following commands to get a new key because I failed to backup the old one.

Started ssh agent in background

 $ eval "$(ssh-agent -s)"
     Agent pid 3821
 $ ssh-keygen -t rsa

Other

These are some notes during the February 2018 key install

When I reinstalled Ubuntu in January of 19 I entered the following command to get a new key because I failed to backup the old one.

 $ ssh-keygen -t rsa
 Started ssh agent in background
 $ eval "$(ssh-agent -s)"
     Agent pid 3821

This is what I did during the first install in February of 18. Some of this isn't necessary.

 ssh-add -l
    The agent has no identities.
 
 $ ssh-keygen -t rsa
   Generating public/private rsa key pair.
   Enter file in which to save the key (/home/eepp/.ssh/id_rsa): 
    Enter passphrase (empty for no passphrase): 
   Enter same passphrase again: 
   Your identification has been saved in /home/eepp/.ssh/id_rsa.
   Your public key has been saved in /home/eepp/.ssh/id_rsa.pub.
   The key fingerprint is:
   SHA256:Gz********I eepp@sisters
   The key's randomart image is:
   +---[RSA 2048]----+
   |           o*.   |
   |    .....        |
   +----[SHA256]-----+
  
 $ ssh-add 
 
 $ ls ~/.ssh/
     d_rsa  id_rsa.pub  known_hosts

I also did the following (which may be wrong)

 $ ssh-add -l -E md5
      2048 MD5:81:*******  /home/eepp/.ssh/id_rsa (RSA)
 
 $ ssh-add -l

Remote Repository Configure

Install public key

IMPORTANT: These was the important steps I did January 2019 that happen on the github side.

  • Logged into ***@*****.net on github.com
  • Went into profile.
  • Selected left tab
    • chose ssh and gpg keys
  • Selected New ssh key button
    • Pasted in the key I found in cat ~/.ssh/id_rsa.pub and it starts with "ssh-rsa AAA..."
    • Named it epp@sisters
  • on github created new repository - for example tr3host

other

I'm not sure of the value of the rest of this. These are notes from February 2018

See "Verify the public key is attached to your account"