DEV Community

Discussion on: Upload stuff on git push when branch is not master

Collapse
 
vlasales profile image
Vlastimil Pospichal
current_branch="$(git symbolic-ref --short HEAD)"
Collapse
 
mte90 profile image
Daniele Scasciafratte

Yes this is a way, my idea was to show also an user case about why you need to know that and use also the hooks :-)