Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(typo): options 2 #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pages/til/git-push-default-current.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ instructions given. Just copy and paste it in.
git push --set-upstream origin feat/ingest-inventory-data
```

## Option 2: push to current bransh wihtout setting upstream
## Option 2: push to the current branch without setting upstream

Honestly I am pretty aware of the branch I am on, and Very few times have I
ever accidently pushed to the wrong branch. The one that you might have a
Honestly, I am pretty aware of the branch I am on, and Very few times have I
ever accidentally pushed to the wrong branch. The one that you might have a
bigger chance with a more detrimental effect is `main`, which I will argue you
should have blocked to require a passing `ci`, and potentially reviewers to
merge in. Therefore you can't even push to `main` anyways.
should have blocked to require a passing `ci`, and potential reviewers to
merge in. Therefore you can't even push to `main` anyway.

To just push to the branch you are currently on each and every time and never
see this error again, you can run this to configure git to always push to your
Expand Down