How to Deploy Local Domain to Remote Server with Git

On the Local Start to make your Git Repository:

cd yourDomain
git init
git add .
git commit -m "initial commit"

On the Remote Server login by Command Line into your ssh Account. Execute:

git init --bare path/To/yourDomain.git

To the Local Add the Remote Origin:

git remote add origin ssh://yourUserName@yourServerName.hostDomain:sshPort/path/To/yourDomain.git

Make some Useful Settings:

git config --global pack.windowMemory "100m"
git config --global pack.SizeLimit "100m"
git config --global pack.threads "1"

(Reference)

Last from your Local Domain Push to the Remote with:

git push origin master

After this you have a Remote Sharing Repository that you can Clone into a Working copy...

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer