Set up Git and GitHub

  1. Set up a GitHub account at github.com

  2. Set up 2FA (two-factor authentification) for your account and at least one way to recover it.

  3. Set up connection over HTTPS:

    1. Install GitHub CLI - GitHub's command line tools. If the instructions don't work for you, see more detailed instructions below.

    2. In a terminal, run gh auth login. It will ask you several questions. Here are the answers you should give:

      $ gh auth login
      ? What account do you want to log into? GitHub.com
      ? You're already logged into github.com. Do you want to re-authenticate? Yes
      ? What is your preferred protocol for Git operations? HTTPS
      ? Authenticate Git with your GitHub credentials? Yes
      ? How would you like to authenticate GitHub CLI? Login with a web browser
      
      ! First copy your one-time code: 65CA-26F6
      Press Enter to open github.com in your browser...

      Copy the code, press Enter, the browser will open. Paste the code, follow instructions on the website to confirm you are you.

  4. (only if you have a strong reason to use SSH) Set up connection over SSH:

    • If you've used SSH before: follow GitHub instructions here.

    • If it's your first time, ask Zhenya to write a short version on this page.

GitHub CLI installation

GitHub CLI (gh) instructions to install are here.

Find your operating system. See the list of programs that let you install gh. If you have one of those, go to the instructions for that program and run the command in a terminal. If you don't know whether you have any of those programs, just try every command for your operating system. Did one of them work? If yes, you are done. If not, we will need to install one of those.

MacOS

Do you have admin rights on your computer or can you find someone who does?

  • Yes. Install homebrew.

  • No.

    • Click the "releases page" on the page with GitHub CLI installation instructions.

    • Find one that...

Last updated