I don't exactly remember how my friend synched his changes in VS Code with remote machine(Gitlab). He commits, adds, changes the code in VS Code and it automatically applied to remote machine.
The problem is I don't remember exactly remaining part but sshXYZ userid@server I don't remember the part XYZ but I know that ssh is secure encrypted connection to the remote server but I don't know the sshXYZ
I found what I was looking for. Actually, XYZ for 'fs' if in total then sshfs command. Here is how to install it:
Author of the following instructions can be found here