问题
I use NuSphere's PhpED's PHP IDE to crate and debuge PHP script.
I've never used a repository systems, but wish to do so now, and am struggling on how to implement it into my workflow.
I have the following three machines:
Windows 7 PC
- NuShere PhpED IDE (It is set up to use my Local Development Centos Server)
- TortoiseGit
- SourceTree (Not sure if I will use since it doesn't integrate with PhpED)
Local Development Centos Server
- Apache (used with PhpED on Windows PC)
- GitLab
- Samba (not set up yet, but plan on using to share
/var/www
files with PhpED on Windows PC)
Remote Production Centos Server
- Apache
Will I need to install Git on the Windows PC?
Will I need to install Git on the Remote Production Centos Server?
PhpED has some basic shell integration with TortoiseGit. Think it is worth using, or am I better off using some other tool to interface with Git?
Any other description of a recommended workflow would be appreciated.
Thank you
回答1:
- Will I need to install Git on the Windows PC?
Yes, if you want to git clone
the repos from your Local Dev Centos server onto your computer
- Will I need to install Git on the Remote Production Centos Server?
Yes, if you want to push your repos to bares repos on your Remote Production Centos server.
But you can also consider other means to deploy those same repo:
A post-receive
hook on the local Prod Centos server can:
- checkout those repo (still on the local Prod server, where git is installed anyway), as described for instance in "Getting GitHub files (and updates) onto an Ubuntu web server",
- rsynch that working tree to the prod server (that way, no need for Git on the remote prod server)
来源:https://stackoverflow.com/questions/22744726/integrating-git-into-my-workflow