I recently built a GitLab repository with my own server 
. Every time I write it locally by clone, then push it to this warehouse, and then clone the contents of this warehouse on the online server (the same server), but I think it"s very cumbersome. 
 but I figure out how to implement 
 I write locally, push to the repository, and at the same time, automatically clone to the online server 
