text
stringlengths
0
3.02k
Well, not *had* to, I wasn't forced.
[3/18/2024 12:08 AM] wildtang3nt
probably was in choco but whatever, it installs the same thing
[3/18/2024 12:09 AM] wildtang3nt
**Method 1: Using `.diff` and `.patch`**
1. **Download the `.diff` or `.patch`:**
- Navigate to `https://github.com/{owner}/{repo}/pull/1115.diff` or `https://github.com/{owner}/{repo}/pull/1115.patch` in your web browser. Replace `{owner}` and `{repo}` with the appropriate repository owner and name.
- Save the file to your local system.
2. **Apply the `.patch` or `.diff`:**
- Open a terminal and navigate to your repository directory.
- Apply the patch using:
```bash
git apply /path/to/downloaded/1115.diff
```
or
```bash
git apply /path/to/downloaded/1115.patch
```
**Method 2: Using Git Commands**
1. **Fetch the PR as a Branch:**
```bash
git fetch origin pull/1115/head:feat/system-wide-theme
```
2. **Checkout the Branch:**
```bash
git checkout feat/system-wide-theme
```
**Method 3: Using `gh` CLI**
1. **Setup `gh` CLI (First Time Only):**
- Install `gh` and authenticate using:
```bash
gh auth login
```
2. **Checkout the PR:**
```bash
gh pr checkout 1115
```
[3/18/2024 12:09 AM] wildtang3nt
there ya go, add that to your dev notes 😉
[3/18/2024 12:10 AM] g30
Oh wow okay thanks! :3
[3/18/2024 12:10 AM] wildtang3nt
personally... i prefer method 3
[3/18/2024 12:11 AM] wildtang3nt
but it's good to have the basis of knowledge of what it actually does
[3/18/2024 12:11 AM] wildtang3nt
method 3 automates method 2, method 2 automates method 1 essentially
[3/18/2024 12:11 AM] g30
Seems easiest honestly but do I need a cleaned cloned directory of the main repo?
[3/18/2024 12:11 AM] wildtang3nt
and method 1 is basically the automated way of your method 0 😛
[3/18/2024 12:11 AM] wildtang3nt
it will checkout a new clean branch
[3/18/2024 12:12 AM] wildtang3nt
but must be done on clone of the master repo
[3/18/2024 12:12 AM] wildtang3nt
well there's ways to do it on fork but it's extra steps
[3/18/2024 12:14 AM] g30
git clone https://github.com/open-webui/open-webui.git
gh pr checkout 1115
profit?
[3/18/2024 12:14 AM] wildtang3nt
might need to do `gh auth` first