If the pending update is for one of your modules it will show the module name. Just follow Anhalter42’s instructions:
//open terminal
cd ~/MagicMirror/modules
cd MODULENAME
git pull
npm install //if required
Otherwise it is the MagicMirror installation itself.
//open terminal
cd ~/MagicMirror
git pull
npm install