How to keep upstream settings on my fork?

I have a fork of a project I want to contribute. I want to keep my fork up to date, so I need to git fetch upstream. Though I noticed that every time I clone my fork on a new machine I have to setup upstream again (git remote add upstream Why is that and how to make this automatic, so that every time I clone my fork upstream is already set up?

As far as I know it’s just a “that’s how git works” kind of thing. You could make a cli alias that clones and sets the upstream but then you have to set that up on new machines too.