Skip to content

UI-Research/HF_SIPPRA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HF_SIPPRA Repository

SCM analysis of Emergency Department outcomes for SIPPRA, including: 1. Process for building the data 2. Analysis of the data 3. Production of reports and other deliverables

Contents

File structure
├── Y:\LHP\HelloFam\SIPPRA\HF_SIPPRA         <- Main folder for local repo
  ├── ...\Data                                <- SC-DSS restricted data
    ├── ...\AdminData                           <- Environments for each user
    ├── ...\Output                              <- Processed data
    ├── ...\_temp                               <- To hold temp datafiles separate from output data
  ├── ...\Programs                            <- All code (R and Stata)
    ├── ...\Programs\Environments               <- Environments for each user
    ├── ...\Programs\Data_build                 <- Building the data
    ├── ...\Programs\Plots                      <- Figures for reports
    ├── ...\Programs\Tables                     <- Results tables and tables for publication/reports  
  ├── ...\Work_XX                             <- Individual sandboxes for each user to work out of. Each sandbox contains a version of the main repo
  ├── ...\Tables                              <- Contains final tables (analysis and final publication)   
  ├── ...\Plots                               <- Contains final plots   
  ├── ...\Reports                             <- **POTENTIAL** contains templates and output from LaTex-written reports 

Getting started on Git

If you started with this file, it's OK, but I'd recommend starting here, to go over a brief overview of what Git is and why we are using it.

Then, read this file BEFORE setting anything up. Follow the instructions below to get started.

The basics

You need to do the following before even starting to set up your Git:

  1. Download and install Note++ (if you haven't already): this program is great for writing code and for comparing files when editing. HelpDesk can help you install this.
  2. Download install Git Bash: here is where we will mainly engage with Git to set things up, push changes, and pull updates. HelpDesk can help you install this.
  3. (Optional) Download GitHub: sometimes it might be easier to check things directly here. Not really needed.
  4. (If you want to) Download Visual Studio: great platform to work on most programming languages and Git.

Setting up Git

The first step is to set up your identity using the following code on Git Bash:

git config --global user.name "John Doe"
git config --global user.email johndoe@example.com

Next, you need to create an SSH to authenticate users. Only users who have an SSH connected to the project can work on HF_SIPPRA.

Setting Up SSH on Git Bash

  1. Open Git Bash and check for an existing typing - no worries if nothing comes up, just means that you don't have any keys set up yet.

    $ ls -al ~/.ssh

  2. Generate a new SSH key

    $ ssh-keygen -t ed25519 -C youremail@urban.org

    You'll be prompted to save the folder in a specific location or in the default. Default is fine, so just press the Enter key on your keyboard.

  3. Start the SSH agent

    $ eval "$(ssh-agent -s)"

  4. Then, copy your key

    $ clip < ~/.ssh/id_ed25519.pub

  5. Then we switch to GitHub.com and create a new account (if you don't have one already)

GitHub Account

  1. Go to GitHub and create an account. You may need to check with the GitHub folk (quickest on Slack) to have your Git connected to UI-Research. UI-Research is Urban's repository for all Urban work.

  2. Once you've created your account, navigate to Settings (the circle in the top right, click on it and the drop down menu).

  3. In the Settings page, on the left hand side, there should be an option with SSH and GPG keys (key icon). At the very top, there should be a green button that says "New SSH key". Click it.

  4. Add a title to it, like HF_SIPPRA.

  5. In the box named Key paste the key you copied from Bash and press the green button "Add SSH key". You should be set!

  6. On the Git Bash Terminal, check if the connection

    $ ssh -T git@github.com

    where you should see one of three GitHub public fingerprints

        SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s (RSA SHA256)
        SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM (ECDSA SHA256)
        SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU (Ed25519 SHA256)
    

Cloning the repository and creating your branch/sandbox

Now, we need to clone the main repository so that we can set up you individual sandbox. To clone the repository onto your workstation, you must:

  1. Use the Git Bash Terminal to set your working directory

    $ cd Y:/LHP/HelloFam/SIPPRA/HF_SIPPRA

  2. Clone the repo

    $ git clone https://github.com/UI-Research/HF_SIPPRA/

  3. Rename the folder you cloned HF_SIPPRA to Work_XX , replacing XX with your initials. The folder is renamed in your Windows Explorer (so directly on the Y drive HF_SIPPRA folder).

  4. Change your working directory to your sandbox

    $ cd Y:/LHP/HelloFam/SIPPRA/HF_SIPPRA/Work_XX

  5. Check that your branch exists

    $ git branch

    Your sandbox_xx should be in green, meaning you are working off your sandbox. Contact the Git manager if you see otherwise.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published