I have googled many things and explored many questions on Stack Overflow
to find the best way to push only dist/
directory to live server. I
couldn't find any good solution but one person on Stackoverflow suggested to
look at Git Submodules and this is the best solution I could come up with. I
have never heard of submodules before because almost nobody uses them. If you
never heard of it too then I'll first explain what a submodule is and then I'll
show you how you can use submodules to push only dist/
directory to
a live server.
This sheet goes along with this SSH YouTube tutorial
$ ssh [email protected]
$ mkdir test
$ cd test