Re:SL(1): Cure your bad habit of mistyping
by RagingCactus on Wednesday July 13, 2022 @02:14AM
(#32079520)
`git push -u origin HEAD` pushes the current branch to `origin` with the same name you have locally. You could even add an alias for that.
[ Parent
| on HN ]
Re:SL(1): Cure your bad habit of mistyping
by mananaysiempre on Wednesday July 13, 2022 @06:05AM
(#32080709)
Or set `push.default` to `current` to have plain `git push origin` push to the same remote name, ignoring the configured upstream (you might also want to set `remote.pushDefault` alongside that).