Switch to master (stable) branch:

git checkout master

Avoid url redirect warning:

git remote set-url origin https://git.pleroma.social/pleroma/pleroma.git

Note that for whatever reason, mastofe seems to be broken for me on master, so I’m staying on develop for now.