You have `origin` (the fork) and `upstream` (the canonical repo). You meant to push to origin, but typed `git push upstream feature` — and upstream branch protection wasn't on.
Delete the remote branch you pushed by mistake, then push to the correct remote.
Medium · 3 steps · +500 XP
This scenario walks through 3 steps, in order:
Try the terminal first — you learn more by doing. When you want to check yourself, here is the command for each step.
git remote -vgit push upstream --delete feature-xgit push -u origin feature-xAlways check `git remote -v` before pushing to unfamiliar setups.