docbrown/scripts/sync_fork.sh
Takuya N da06427cb6
Replace Git URL with the new one (#17321)
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2022-04-18 22:12:51 -04:00

12 lines
296 B
Bash
Executable file

#!/bin/sh
set -e
# sync this fork with upstream to get the latest changes
URL="https://github.com/forem/forem.git";
if ! git config remote.upstream.url > /dev/null; then
echo "Adding remote ${URL}"
git remote add upstream $URL
fi
git fetch upstream
git checkout main
git merge upstream/main