用于远程SSH的GIT GUI客户端解决方案 [英] solution for GIT GUI client for remote SSH

查看:317
本文介绍了用于远程SSH的GIT GUI客户端解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是GIT GUI用户。我没有问题在我的本地开发中使用。但是,现在我们有一台GIT回购服务器。我想知道任何解决方案,我可以通过使用GIT GUI客户端来远程推,拉和差异访问?



当然。我SSH到Linux服务器,并使用git命令来执行所有的git命令。但是当我发现差异的时候我觉得很困难。这就是为什么我认为有使用GIT GUI客户端访问远程回购的任何解决方案,并使用GIT客户端执行GIT命令。



我想要的是可以装载远程服务器在GIT仓库中。
目前我们只在本地磁盘上打开GIT repo。如C:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ $ b

打开OSX和Windows的解决方案。

解决方案

如果您的服务器启用了它,您可以使用 XForwarding 显示在本地机器上的远程机器上执行的GUI。



在服务器端,这意味着你需要安装适当的工具(例如 git-gui ,这意味着您还需要安装 tcl / tk 这意味着您还需要安装 X 基础架构)。
您还必须启用 Xforwarding ,方法是确保在 / etc / ssh / sshd_config 中具有以下行:

  X11转发是

要在本地linux机器上使用它,通常使用 -X 标志来启用 XForwarding 给定连接:

  shiro @ local:〜$ ssh -X gituser @ gitserver 
gituser @ gitserver: 〜$ cd repo.git
gituser @ gitserver:〜/ repo.git $ git gui

在您的本地OSX机器上,您将使用 -Y

  shiro @ applejoice:〜$ ssh -Y gituser @ gitserver 
gituser @ gitserver:〜$ cd repo.git
gituser @ gitserver:〜/ repo.git $ git gui

您需要在本地机器上运行 Xserver ,以便使用 XForwarding 。虽然这不是Linux(或OSX)上的问题,但它对W32来说很复杂。网上有教程在W32下设置和使用Xservers(例如 Xming


I am a GIT GUI user. I have not issue using in my local development. However, now we have a server with GIT repo. I would like to know any solution I can remotely push, pull and diff by using GIT GUI client to access that?

Currenly. I am SSH to the linux server, and use git command to do all the git command. But I found it very difficulty when come to diff. That's why I think is there any solution for me using GIT GUI client access remote repo and do the GIT command with GIT client.

What I want is I able to mount a remote server in a GIT repo. Current we only to open GIT repo in our local disk. eg C:\www\repo.git file, how about I want to access 10.10.10.10/home/www/.git and do all the GIT command in the GIT client.

Solution open for OSX and Windows.

解决方案

if your server has it enabled, you can use XForwarding to display a GUI executed on the remote machine on your local machine.

On the server-side, this means that you need to have the proper tools installed (e.g. git-gui, which means that you also need tcl/tk installed, which means that you also need the X infrastructure installed). You also must enable Xforwarding, by making sure that you have a line like the following in your /etc/ssh/sshd_config:

X11Forwarding yes

To use that on your local linux machine, you would usually use the -X flag to enable XForwarding for a given connection:

 shiro@local:~$ ssh -X gituser@gitserver
 gituser@gitserver:~$ cd repo.git
 gituser@gitserver:~/repo.git$ git gui

On your local OSX machine, you would instead use -Y

 shiro@applejoice:~$ ssh -Y gituser@gitserver
 gituser@gitserver:~$ cd repo.git
 gituser@gitserver:~/repo.git$ git gui

You need an Xserver running on your local machine, in order to use XForwarding. While this is not a problem on linux (or OSX), it get's complicated for W32. There are tutorials on the web for setting up and using Xservers under W32 (e.g. Xming)

这篇关于用于远程SSH的GIT GUI客户端解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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