There's a very powerful feature on GitHub, pull request, and when you fork a project you can drop the latest changes in the original code, keep your project consistent with the author's project, or submit your own code to the author to contribute to the open source project.
However, I did not find such a feature on Gitlab, only the functionality of the merge request that was similar to submitting your own code to the original code.
However, such requirements can be achieved through powerful commands.
1 Add a remote project source to the project you fork.
git remote add #myremote # #https://git.oschina.net/zimingforever/myhomepage.git#
2 Submitting a local change
Git commit
3 Updating a remote project
git Remote update #myremote #
4 then checkout to the specified branch, such as develop
git checkout #develop #
5 then rebase to the address of the remote project
git rebase #myremote #/#develop #
6 or direct pull under the latest remote code
Git pull # #myremote # #develop #
7 then push the latest code into the project of your fork
git push
Git fork on the project to get the latest source code