Forking

If you fork a repository from GitHub, Gitlab or any other places, you will probably need to rebase from time to time to the upstream project.

So just add another remote:

git remote add upstream https://github.com/matcornic/hugo-theme-learn.git

And when needed, update your branch:

git fetch upstream
git checkout master # or any other branch
git rebase upstream/master
git push