Skip to content

Commit

Permalink
code formatting for TIL
Browse files Browse the repository at this point in the history
  • Loading branch information
lchski committed Nov 22, 2022
1 parent 09c08dd commit 33ead82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _notes/2022-11-21-1669074967.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ git fetch {contributing_username}
# create a new local branch, based on the branch from the PR
git checkout -b {contributing_username}-{branch} {contributing_username}/{branch}
```
{: .code}

Now you have a local branch that mirrors whatever’s in the contributing repository’s branch. Want to make some changes?

Expand All @@ -31,6 +32,7 @@ git branch {contributing_username}-{branch} -u {contributing_username}/{branch}
# push commits in your current branch to {branch} from the PR
git push {contributing_username} HEAD:{branch}
```
{: .code}

Otherwise, you can make and commit any edits, merge to your main branch (ideally with a merge commit indicating you’re closing the PR #, use `git merge --no-ff` to ensure there’s a merge commit), then push, updating your repo and automatically closing the PR in the process.

Expand Down

0 comments on commit 33ead82

Please sign in to comment.