#!/bin/bash UPSTREAM_REPO='org.mamedev.MAME' TARGET_BRANCH='master' git fetch https://github.com/flathub/"$UPSTREAM_REPO" "$TARGET_BRANCH" # Fetch the latest changes from the remote master branch git merge FETCH_HEAD # Merge the fetched changes into your current branch