# make sure you have git-review (https://docs.opendev.org/opendev/git-review/latest/) installed
sudo apt-get install git-review
# clone MediaWiki into your working directory
cd ~/src
git clone https://gerrit.wikimedia.org/r/mediawiki/core.git mediawiki
cd mediawiki/
# After cloning a repository, you need to set it up for using git-review
git review -s
# Use the commit message template that is found in the MediaWiki sources
git config commit.template .gitmessage
# And configure your Gerrit/Developer account username - which you can also do in your .ssh/config
git config --global --add gitreview.username "freephile"
# Create a new bugfix branch
git checkout master
git pull
git checkout -b fix-T385308-update-links
# work on the code and commit it
code ./
git status
git commit --all
# Then push it to gerrit for review
git review