Y
Hacker News
new
|
ask
|
show
|
jobs
by
RagingCactus
1433 days ago
`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.
1 comments
mananaysiempre
1433 days 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).
link