A clear tutorial to solve the problem: https://dev.to/yunshan_li/setting-up-your-own-github-remote-repository-on-a-shared-server-kom