You're viewing a single thread.
View all comments
277
comments
g-push
which is alias forgit push origin `git branch --show`
Which I'm writing on my phone without testing or looking
7 1 Replygit push origin HEAD
is a slightly shorter way of doing the same thing, even though you have an alias anyway lol2 0 Replygit config --global alias.pusho 'push --set-upstream origin HEAD'
You're welcome.
2 0 ReplySo that's making
git push
always push to the current branch?1 0 ReplyWhen you're pushing a new branch you've never pushed before you need the
-u
command. That's what this alias is for.As long as the config's
push.default
isn'tmatching
,git push
without arguments will only push the current branch.1 0 Reply
You've viewed 277 comments.
Scroll to top