I am using Git to track my projects and what I usually do is I clone git project in live server and then do push from localhost
or pull
from live server.
Now, I'm wondering if let's say instead doing git push from my live server, I ftp the files via FTP client like transmit.
For example I have a folder git-test
, it has .git
file in it and then,
I ftp git-test
folder to live server using transmit.
The live server will still have .git
in git-test
folder.
- The question is does the git functions still work if doing it this way?
- If it works, so what's the difference between the two approach? Which one is the best practice?