How to upgrade moodle version using cli/git?

Viewed 225

I have a moodle site which is maintained in a personal github repository. When moodle releases a new moodle version, I need to replace files manually to upgrade moodle version in my personal repository. Is there any way, in which I can automate the manual task with cli or git by connecting moodle official repository with my personal repository? What is the best way to upgrade moodle version in my scenario?

1 Answers

First of all, fork a repository(moodle) to create a copy of the repository(personal).

Get

Then click on fetch upstream to keep the branch up-to-date with the upstream repository(moodle). See below screenshot enter image description here

Run git pull command for update code with a particular branch

git pull [remote] [branch]
Related