Manage wordpress blog on remote server via git -


i want able develop plugins & themes on machine , changes reflected on server instantly. want backup plan. git & github seems solution. want make regular changes server (push local) , once in while upload them on github (local github or remote github).

the question can clone repo github remote server , local machine , able push local remote or pull github remote (if i'm not @ home)?

edit: did research , found out need bare repo in server, want able push/pull to/from github.

in github , bitbucket (https://bitbucket.org) can add number of ssh keys different machines , push , pull anywhere want. command generate such key

ssh-keygen  

answer questions enter , ssh key in /home/user/.ssh/id_rsa.pub. have every machine want push , when repository set private, yo have machines, want pull from.

so workflow

  • editing locally
  • pushing github/butbucket repo: git push -u origin
  • log in machine wordpress running: git pull

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -