Skip to content

Instantly share code, notes, and snippets.

View osumoogle's full-sized avatar

Joe Brunscheon osumoogle

View GitHub Profile
@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active April 7, 2024 22:55
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

Delete remote merged into master
git branch -r --merged | awk -F'/' '/^ *origin/{if(!match($0, /(>|master)/)){print $2}}' | xargs git push origin --delete
Delete local merged into current branch
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
Delete all remote not in egrep
git branch -a | egrep "remotes/origin/" | cut -d "/" -f 3- | egrep -v "(master|develop)" | xargs -n 1 git push --delete origin