mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 23:28:02 +00:00
Compare commits
4 Commits
2d5abd9cbf
...
35d1a81ea7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35d1a81ea7 | ||
|
|
d69fefe9f0 | ||
|
|
1cc612294e | ||
|
|
d79264395b |
@@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
|
||||
|
||||
For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186).
|
||||
|
||||
_1668 TILs and counting..._
|
||||
_1669 TILs and counting..._
|
||||
|
||||
See some of the other learning resources I work on:
|
||||
|
||||
@@ -40,6 +40,7 @@ If you've learned something here, support my efforts writing daily TILs by
|
||||
* [Elixir](#elixir)
|
||||
* [Gatsby](#gatsby)
|
||||
* [Git](#git)
|
||||
* [GitHub](#github)
|
||||
* [GitHub Actions](#github-actions)
|
||||
* [Go](#go)
|
||||
* [GROQ](#groq)
|
||||
@@ -415,7 +416,6 @@ If you've learned something here, support my efforts writing daily TILs by
|
||||
- [Stashing Untracked Files](git/stashing-untracked-files.md)
|
||||
- [Switch To A Recent Branch With FZF](git/switch-to-a-recent-branch-with-fzf.md)
|
||||
- [Transition A Branch From One Base To Another](git/transition-a-branch-from-one-base-to-another.md)
|
||||
- [Tell gh What The Default Repo Is](git/tell-gh-what-the-default-repo-is.md)
|
||||
- [Turn Off The Output Pager For One Command](git/turn-off-the-output-pager-for-one-command.md)
|
||||
- [Two Kinds Of Dotted Range Notation](git/two-kinds-of-dotted-range-notation.md)
|
||||
- [Unstage Changes Wih Git Restore](git/unstage-changes-with-git-restore.md)
|
||||
@@ -430,6 +430,11 @@ If you've learned something here, support my efforts writing daily TILs by
|
||||
- [What Is The Current Branch?](git/what-is-the-current-branch.md)
|
||||
- [Whitespace Warnings](git/whitespace-warnings.md)
|
||||
|
||||
### GitHub
|
||||
|
||||
- [Open A PR To An Unforked Repo](github/open-a-pr-to-an-unforked-repo.md)
|
||||
- [Tell gh What The Default Repo Is](github/tell-gh-what-the-default-repo-is.md)
|
||||
|
||||
### GitHub Actions
|
||||
|
||||
- [Cache Playwright Dependencies Across Workflows](github-actions/cache-playwright-dependencies-across-workflows.md)
|
||||
|
||||
@@ -48,8 +48,10 @@ tasks:
|
||||
dir: '{{.NOTES_DIR}}'
|
||||
cmds:
|
||||
- git add NOTES.md
|
||||
- git diff --cached --quiet || git commit -m "Update notes - $(date '+%Y-%m-%d %H:%M')"
|
||||
- git commit -m "Update notes - $(date '+%Y-%m-%d %H:%M')"
|
||||
- git push
|
||||
status:
|
||||
- git add NOTES.md && git diff --cached --quiet
|
||||
silent: false
|
||||
|
||||
notes:status:
|
||||
|
||||
19
github/open-a-pr-to-an-unforked-repo.md
Normal file
19
github/open-a-pr-to-an-unforked-repo.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# Open A PR To An Unforked Repo
|
||||
|
||||
Sometimes I will clone a repo to explore the source code or to look into a
|
||||
potential bug. If my curiosity takes me far enough to make some changes, then I
|
||||
jump through the hoops of creating a fork, reconfiguring branches, pushing to my
|
||||
fork, and then opening the branch as a PR against the original repo.
|
||||
|
||||
The `gh` CLI allows me to avoid all that hoop-jumping. Directly from the cloned
|
||||
repo I can use `gh` to create a new PR. It will prompt me to creat a fork. If I
|
||||
accept, it will seamlessly create it and then open a PR from my fork to the
|
||||
original.
|
||||
|
||||
```bash
|
||||
$ gh pr create
|
||||
```
|
||||
|
||||
This allows me to create the PR with a few prompts from the CLI. If you prefer,
|
||||
you can include the `--web` flag to open the PR creation screen directly in the
|
||||
browser.
|
||||
Reference in New Issue
Block a user