Post #1723323
2026-03-25 23:55 UTC
@niclake A git alias i've been using for a long time:
first-push = ! git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)
For pushing the branch the first time, when it would otherwise be rejected with an error of "The current branch xxx has no upstream branch."
Replies (0)
No replies.