The basic operations of Git are established in remote warehouses, local warehouses, temporary storage areas, and workspaces. Your actions as above
git init
The git init command initializes a local warehouse
git add .
Temporarily store files in the current workspace to the temporary storage area
git commit
git commit submits the staging area data to the local warehouse
git push
git push submits the local warehouse data to the remote warehouse
The following is a very intuitive picture
Command flow diagram
As shown in the figure, you can only pull and merge local warehouse data into the local workspace.
According to your needs, you can only build a git server locally, and you can access your locally built service through your ip address in the local area network.