Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
RagingCactus
· 4y ago · 0 comments
`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.
Comments
[–]
mananaysiempre
4y ago
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).