---
# System prepended metadata

title: Setting up github access
tags: [Random]

---

---
tags: Random
title: Setting up github access
---

# Setting up github access

> My short notes on sending changes from our local computer to github can be found [here](https://hackmd.io/@astrobiomike/github-cli-notes).

[toc]


## On mac

> **NOTE**
> Can probably do this with the conda install path shown in the ubuntu section next (found that later).

Check if homebrew is installed:

```bash
brew -h
```

If not, install that, see here: https://mac.install.guide/homebrew/3.html


Then:

```bash
brew install gh
```

```
gh auth login
    # follow steps (enter, enter, Y, Login with a web browser)
```

## On ubuntu
Found a way with conda:

```bash
conda install -c conda-forge gh
```

```bash
gh auth login
    # enter on GitHub.com
    # enter on HTTPS
    # y for authenticate
    # enter on Paste an authentication token
```

Go to https://github.com/settings/tokens to create a personal access token
- generate new token
- anything for the note, e.g. "CLI access"
- expiration to no expiration
- i check all boxes
- generate token
- copy token and paste into waiting terminal



## On windows

> Will be added when I get to help someone on a windows machine figure this out :) 