Git Gui远程仓库(PHP开发) [英] Git Gui for remote repository (PHP Developing)

查看:122
本文介绍了Git Gui远程仓库(PHP开发)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道类似的问题已经在这里得到解决,但我无法找到一个针对我的具体问题。



我们需要Git来进行php项目的版本控制。
我们的服务器上有一个Git仓库,其中php和html文件在版本控制下,为了调试puprpose,我们可以通过apache访问这个仓库的工作树并显示输出。

现在我们拥有一个纯粹的Git Repository,我们可以从中更改开发库,并且开发人员将更改推送到此库。



开发人员本身也需要调试它们代码通过Apache之前,他们推到中央回购,所以他们的工作副本也需要在服务器上。



我的问题是,有没有一种方法来发展主题使用Git Gui来管理服务器上的远程存储库?

解决方案

是的,您可以安装X的最小子集和Tk库在您的开发服务器
上,然后使用SSH将它的X连接端口转发到开发人员的机器上。如果这些文件正在运行Windows,则必须在其上安装本地X服务器( VcXsrv 是一个很好的选择),如果这些系统正在运行具有真正X服务器的系统,则需要将X服务器配置为侦听TCP(IIRC,大多数现代系统默认禁用此设置)。 <$ c $无论本地X服务器如何配置运行,c> ssh -X 都能处理X端口转发。



如何配置端口转发,取决于你使用的客户端。 PuTTY为此配置了GUI配置器,OpenSSH通过 RemoteForward 配置文件指令使用命令行选项static支持即席配置。



Google for X + window + SSH + port + 转发 这似乎是一个很好的开始。






但是我真的没有看到学习一些命令行Git的问题。它允许做同样的事情 git gui can(包括交互式hunk-by-hunk分段)等等。至于学习资料,无论如何,所有Git书籍,HOWTO和博客文章都引用了命令行Git示例。

最后,我认为这是一笔很好的投资:让你的开发人员更高效。


I know similar questions have been aksed here, but i cant find one for my specific question.

We need Git for version control on a php projekt. We have a Git repository on our server in which the php and html files are under version control, for debugging puprpose we can access the work tree of this repository through apache and display the output.
Now we have a bare Git Repository from which we pull changes to the development repository and the developers push their changes to this repository.

The developers itself also need to debug their code through the apache before they push to the central repo, so their working copys also need to be on the server.

My question is, is there a way for the developing theme to use a Git Gui to manage their remote repositorys on the server?

解决方案

Yes, you can install a minimal subset of X and Tk libraries on your development server and then use SSH to port-forward X connection from it to the developers' machines. If these are running Windows you have to install a local X server on them (VcXsrv is an excellent choice), and if these are running systems having true X server, you'd need to configure the X server to listen on TCP (IIRC, most contemporary systems come with this setting disabled by default). ssh -X handles X port-forwarding just fine no matter how the local X server is configured to run.

How to configure port forwarding, depends on what client you're using. PuTTY has GUI configurator for this, OpenSSH supports ad-hoc configuration using command-line options of "static" via the RemoteForward configuration file directive.

Google for X+window+SSH+port+forwarding for lots of HOWTOs. This appears to be a good start.


But really I fail to see what's wrong with learning a bit of command-line Git. It allows to do the same things git gui can (including interactive hunk-by-hunk staging), and more. As to learning material, all Git books and HOWTOs and blog posts cite command-line Git examples anyway.

In the end, I think it's a good investment anyway: this could make your devs more productive.

这篇关于Git Gui远程仓库(PHP开发)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆