101 things I would tell my self from 10 years ago
Don’t agree with all of them, but plenty of good advice in there.

Don’t agree with all of them, but plenty of good advice in there.
One step to squash a branch into a single commit.
Instead of using rebase (confusing and weird sometimes) it makes a temporary branch with your then merges that with merge --squash.
To add custom git command, saving this as git-ez-squash (or git-whatever) in a folder somewhere in your PATH.
#!/usr/bin/env bash
set -e
DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
TEMP_BRANCH="temp-$(date +%s)"
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
# check for uncommitted changes
if [[ -n $(git status --porcelain) ]]; then
echo "Error: There are uncommitted changes on the current branch."
exit 1
fi
git fetch origin "$DEFAULT_BRANCH"
git merge --no-ff --no-edit "$DEFAULT_BRANCH"
git checkout -b "$TEMP_BRANCH"
git branch -D "$CURRENT_BRANCH"
git checkout origin/"$DEFAULT_BRANCH"
git checkout -b "$CURRENT_BRANCH"
git merge --squash "$TEMP_BRANCH"
git commit
git branch -D "$TEMP_BRANCH"
From a bunch of different people. Lot of good ones.
Notes for if you try drawing for a little while
Tips from Kevin Kelly :
Accept compliments with thanks.
Getting cheated occasionally is a small price to pay for trusting the best in everyone
When invited to something in the future, ask yourself, Would I do this tomorrow?
The thing that made you weird as a kid could make you great as an adult.
It’s not an apology if it comes with an excuse.
Ignore what they are thinking of you because they are not thinking of you.
If you think you saw a mouse, you did, and if there is one, there are others.
The biggest lie we tell ourselves is, “I don’t need to write this down because I will remember it.”
Markdown archive of the OP Forums tips and tricks megathread
Excellent take. The imagined overly critical audience is a jerk.
Some good tips for better writing. HN thread on it also had some interesting points on tone and editorialising of writing.
Good list to re-read and remember. Be more considerate of where the years go. Also learn how to come up with phrases like this :)
See all tags.