将Git集成到我的工作流程中 [英] Integrating Git into my workflow
问题描述
我使用NuSphere的PhpED的PHP IDE来创建和打碎PHP脚本。
我从来没有使用仓库系统,但现在想这样做,并且挣扎着关于如何将其实施到我的工作流程中。
我有以下三台机器:
/ p>
- NuShere PhpED IDE(设置为使用本地开发Centos服务器)
- TortoiseGit
- SourceTree(不确定是否会使用它,因为它没有与PhpED集成)
本地开发Centos服务器
- Apache(与Windows PC上的PhpED一起使用) >
- Samba(尚未设置,但计划使用Windows PC上的PhpED共享
/ var / www
文件)
远程生产Centos服务器
$ b $ ul
- Apache
$ b我需要在Windows PC上安装Git吗?
我需要安装吗? l远程生产Centos服务器上的Git?
PhpED与TortoiseGit有一些基本的shell集成。认为它值得使用,或者我最好使用其他工具与Git进行交互?
对推荐工作流程的任何其他描述将不胜感激。
谢谢
解决方案- li>我需要在Windows PC上安装Git吗?
- Samba(尚未设置,但计划使用Windows PC上的PhpED共享
是的,如果你想 git clone
从您的本地开发Centos服务器到您的计算机上的回购
- 是否需要在远程生产Centos服务器上安装Git?
是,如果您想在远程生产Centos服务器上将您的仓库推送到bares仓库。
但是您也可以考虑采用其他方式来部署这些相同的仓库:
A post-receive
钩子在本地Prod Centos服务器上可以:
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
- 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)
这篇关于将Git集成到我的工作流程中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!