note
You need to have Git installed. Site: https://git-scm.com/
tip
Choose to install only the Bash in the options.
Starting
Clone your fork on your computer
Open the clone’s folder
Open Git Bash from there
Create a bash file (script)
Write
touch up-phpbb-fork
to create the fileThen write
chmod u+x up-phpbb-fork
to make it executable
You can now see the new file in the clone’s folder as per this cap.
File content
#!/bin/bash
#
# Brought to you by phpBB Studio © 2019 ( phpbbstudio.com )
#
START_TIME=$SECONDS
echo
echo "Updating master..."
echo
git checkout master
git pull https://github.com/phpbb/phpbb.git master
git push origin master
echo
echo "Done."
echo
echo "Updating 3.3.x..."
echo
git checkout 3.3.x
git pull https://github.com/phpbb/phpbb.git 3.3.x
git push origin 3.3.x
echo
echo "Done."
echo
echo "Updating 3.2.x..."
echo
git checkout 3.2.x
git pull https://github.com/phpbb/phpbb.git 3.2.x
git push origin 3.2.x
echo
echo "Done."
echo
echo "Switching back to master..."
git checkout master
echo
echo "Done."
echo
ELAPSED_TIME=$(($SECONDS - $START_TIME))
echo "Task finished in $ELAPSED_TIME seconds."
Run the file
At this point you can run the script with
sh up-phpbb-fork
Your local and forked repos will be automatically updated to latest.