Empty repository instructions

These instructions are listed when the system creates a new repository, but they are replaced by the repository contents when the repository is no longer empty. The instructions assume a fictitious user named "New User".

HTTPS

HTTPS uses Transport Layer Security (TLS) to encrypt network traffic.

Git Setup

      Download and install Git
      git config --global user.name "New User" 
      git config --global user.email newuser@alaska.edu
      (Optional) Upload SSH Public Key.  This is not necessary if
                 you only use HTTPS access, but then you may have to
                 provide your username/password for each remote git
                 interaction. After following these basic instructions
                 for setting up a SSH public key, select "SSH" in
                 Repository Access Links on the right and follow
                 the SSH instructions below.

Setup New Repository

      mkdir newuser
      cd newuser
      git init
      touch README.md
          o Add text describing the project, which will
             appear on your project's repository page.
          o Use HTML tags for formatting.
      git add README.md
      git commit -m 'Initializing newuser repository'
      git remote add origin https://newuser@projects.cs.uaf.edu/newuser.git
      git push -u origin master

Setup Existing Repository

      cd existing_git_repo
      git remote add origin https://newuser@projects.cs.uaf.edu/newuser.git
      git push -u origin master

Clone Repository

      git clone https://newuser@projects.cs.uaf.edu/newuser.git

SSH

These instructions use Secure Shell (SSH) to encrypt network traffic.

Git Setup

      Download and install Git
      git config --global user.name "New User" 
      git config --global user.email newuser@alaska.edu
      (Optional) Upload SSH Public Key.  This is not necessary if
                 you only use HTTPS access, but then you may have to
                 provide your username/password for each remote git
                 interaction. After following these basic instructions
                 for setting up a SSH public key, select "SSH" in
                 Repository Access Links on the right and follow
                 the SSH instructions below.

Setup New Repository

      mkdir newuser
      cd newuser
      git init
      touch README.md
          o Add text describing the project, which will
             appear on your project's repository page.
          o Use HTML tags for formatting.
      git add README.md
      git commit -m 'Initializing newuser repository'
      git remote add origin ssh://git@projects.cs.uaf.edu/newuser.git
      git push -u origin master

Setup Existing Repository

      cd existing_git_repo
      git remote add origin ssh://git@projects.cs.uaf.edu/newuser.git
      git push -u origin master

Clone Repository

      git clone ssh://git@projects.cs.uaf.edu/newuser.git