Skip to content

Commit

Permalink
Merge pull request #15652 from andy9a9/docs/tap
Browse files Browse the repository at this point in the history
docs: Add info about tap creation
  • Loading branch information
EricFromCanada authored Jul 10, 2023
2 parents 8c72df5 + f350c9d commit 88e39d5
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions docs/How-To-Open-a-Homebrew-Pull-Request.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,19 @@ The type of change you want to make influences which of Homebrew's main reposito

1. [Fork the Homebrew/homebrew-core repository on GitHub](https://github.com/Homebrew/homebrew-core/fork).
* This creates a personal remote repository that you can push to. This is needed because only Homebrew maintainers have push access to the main repositories.
2. Change to the directory containing Homebrew formulae:
2. Download a local clone ("tap") the repository of core Homebrew formulae:

```sh
brew tap --force homebrew/core
```

3. Change to the directory containing Homebrew formulae:

```sh
cd "$(brew --repository homebrew/core)"
```

3. Add your pushable forked repository as a new remote:
4. Add your pushable forked repository as a new remote:

```sh
git remote add <YOUR_USERNAME> https://github.com/<YOUR_USERNAME>/homebrew-core.git
Expand All @@ -54,13 +60,19 @@ The type of change you want to make influences which of Homebrew's main reposito

1. [Fork the Homebrew/homebrew-cask repository on GitHub](https://github.com/Homebrew/homebrew-cask/fork).
* This creates a personal remote repository that you can push to. This is needed because only Homebrew maintainers have push access to the main repositories.
2. Change to the directory containing Homebrew casks:
2. Download a local clone ("tap") the repository of core Homebrew casks:

```sh
brew tap --force homebrew/cask
```

3. Change to the directory containing Homebrew casks:

```sh
cd "$(brew --repository homebrew/cask)"
```

3. Add your pushable forked repository as a new remote:
4. Add your pushable forked repository as a new remote:

```sh
git remote add <YOUR_USERNAME> https://github.com/<YOUR_USERNAME>/homebrew-cask.git
Expand Down

0 comments on commit 88e39d5

Please sign in to comment.