I love fuck! I can never be bothered creating upstream Git branches when I’ve branched locally, I just type git push and it complains there’s no upstream, and then I type fuck and it does it for me.
It’s less typing but technically it’s one more request to the server which you have to wait for to fail before the correct request can be fucked, so it might be faster to do it the correct way from the get-go. Especially if you’ve done it before and you can just Ctrl+R and find it in the history, or you have a git alias (e.g. git phead)
I love fuck! I can never be bothered creating upstream Git branches when I’ve branched locally, I just type
git push
and it complains there’s no upstream, and then I typefuck
and it does it for me.Set push.autoSetupRemote in your gitconfig and it’ll do it first time
There is also a zsh-Plugin for the fuck. That way you can just double hit esc and zsh… uhm… fucks… automatically for you
You can also type
git push origin HEAD
and it also does thatYeah… but
Still is less typing tho
It’s less typing but technically it’s one more request to the server which you have to wait for to fail before the correct request can be
fuck
ed, so it might be faster to do it the correct way from the get-go. Especially if you’ve done it before and you can just Ctrl+R and find it in the history, or you have a git alias (e.g.git phead
)No, your local Git knows the branch isn’t tracking any upstream branch, so it never makes a request to the server.