Git alias:
hew-remote = !"f() { \
git hew-remote-dry-run \"$@\" | \
xargs -I% git push origin :% 2>&1 ; \
}; f \"$@\""
Syntax:
git hew-remote [<commit>]
Example with the default upstream branch name:
git hew-remote
Example with a specific upstream branch name:
git hew-remote main
Example with a specific upstream commit hash:
git hew-remote 4677ad893ee038b113e22f6330da6ae710712f88
If a branch is provided, or a commit is provided, then this alias will use it.
Otherwise, this alias will use the upstream branch name.
Compare these: