Intro to GitHub for the Translational Vascular AI Lab

Welcome to our GitHub! If you're new to working with GitHub, this repo serves as a tour guide for you to gain familiarity with cloning and pushing to code repositories as well as general GitHub best practices

Terminology

  • Repository aka a repo, is the root folder in which the project is contained.

  • Remote repository refers to the repository hosted on the GitHub platform.

  • Local Repository refers to the copy of the repo stored on your local computer, in your file system.

  • Cloning a repository refers to copying a remote repository to your computer, allowing you to access/edit files locally and commit changes. See below a tutorial on cloning a repository.

  • Commiting/pushing to a repository refers to the act of committing your local file changes to the remote repo on GitHub. See below a tutorial on cloning a repository.

Getting Started

Prerequisites

Below are a list of prerequisites you need in order to start contributing to repositories on our account. Each bullet point has a linked tutorial.

Creating a Repository

If you're starting a new project that doesn't yet have a repo setup, follow the below steps. If you want to contribute to an existing repo on our organization's account, skip to the Cloning a Repository tutorial.

Create a README.MD

Including detailed documentation for all your projects is a highly recommended best practice. It serves as a blueprint for future researchers and contributors to use to navigate and understand your file structure and your code. On GitHub, we use markdown files (with the .md extension, you're reading one right now!) to write documentation. See the markdown syntax cheat-sheet to get started with formatting markdowns. You can include as many md files as you need in any folders within the repository, however the README.md in the root repository should serve as an intro to the repo, as it is displayed on the repo's main page on GitHub.

Clone a Repository

Contribute to a Repository

Now that you have a local copy of the repo on your machine, you can begin uploading, modifying, and deleting files in it.

Depending on the access you've been granted to a repository, there are different ways to contribute (i.e. push your local changes) to a repo.

Private Repo

Public Repo