Comment

Comment by valerij

doing a full clone just to change a branch name seems a bit wasteful.

    git init
    git remote add origin ...
    git push origin (git ls-remote origin | grep "refs/heads/master" | cut -f1 ):master
should be enough
parent valerij 6 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton