Yakko Majuri
1 min readOct 15, 2020

--

Yeah I have a bunch of aliases/shell functions for git myself. Definitely very useful.

My favorite is ‘push new’, which I use to dynamically push a new branch to the remote origin.

Here’s the gist of it:

branch=”$(git rev-parse — symbolic-full-name — abbrev-ref HEAD)”
git push — set-upstream origin $branch

--

--

Yakko Majuri
Yakko Majuri

Written by Yakko Majuri

Programmer, writer, traveler, hitchhiker, climber, photographer. i.e. lost. (P.S. amateur at most of the above) // memoirsandrambles.substack.com

No responses yet