简体   繁体   English

git在ubuntu服务器和Windows LAN上安装LAN

[英]git install LAN on ubuntu server and windows LAN

我想将git_server上的Git安装在ubuntu机器上,并且局域网中的用户是Windows机器(使用eclipse进行开发)如何配置我的lan?

Setting up LAN 设置局域网

The most easiest thing to do is keep all machines using DHCP to automate the developers configuration on the network. 最简单的方法是让所有计算机都使用DHCP来自动执行网络上的开发人员配置。 You could then setup the Git server to have an important IP address. 然后,您可以将Git服务器设置为具有重要的IP地址。 Assuming the windows machines are setup to use an IP range of 255 starting at .1; 假设 Windows机器设置为使用IP范围255(从.1开始); you could either... 你可以...

  1. Setup important servers on the other end of the spectrum (.254 git server, 253 printers, etc) 在频谱的另一端设置重要服务器(.254 git服务器,253台打印机等)
  2. Make sure that the lowest spectrum is used first (.1 DHCP, DNS, routing, etc and .2 for git server) and optionally reconfigure the DHCP to start at a higher address. 确保首先使用最低的频谱(.1 DHCP,DNS,路由等,而git服务器为.2),并有选择地将DHCP重新配置为从更高的地址开始。
  3. Use a locally-known DNS address that can be well remembered by developers. 使用开发人员可以记住的本地已知DNS地址。 Typically done by adding a static route in the router or by adding the DNS as part of all the developers hosts file 通常通过在路由器中添加静态路由或将DNS添加为所有开发人员主机文件的一部分来完成
  4. Reverse proxy the server that is available locally to be made available by subdomain (eg developers.example.com, or git.example.com) 反向代理服务器,该服务器可以在本地由子域提供(例如,developers.example.com或git.example.com)

Setting up a Git Server 设置一个Git服务器

Using GitLab you can setup repositories the same as GitHub. 使用GitLab,您可以设置与GitHub相同的存储库。 You can also setup your own accounts online for private repositories than paying for a GitHub subscription. 您也可以在线为私人存储库设置自己的帐户,而不是为GitHub订阅付费。 However, the best way to privatise your code is to download GitLab for a server and set it up. 但是,私有化代码的最佳方法是为服务器下载GitLab并进行设置。 Which means better user-management and customisation. 这意味着更好的用户管理和自定义。 If you're familiar with GitHub; 如果您熟悉GitHub; GitLab should be quite easy to navigate. GitLab应该很容易导航。

Start the installation process - https://about.gitlab.com/installation/ 开始安装过程-https://about.gitlab.com/installation/

Install from source using Debian/Ubuntu 使用Debian / Ubuntu从源代码安装

Setting up Developer Workstations 设置开发人员工作站

Developers may be more interested to use a GUI and I've heard TortoiseGit can be quite useful (especially when it comes to merging branches/tags). 开发人员可能对使用GUI更感兴趣,而且我听说TortoiseGit可能非常有用(尤其是在合并分支/标签时)。

Otherwise, if your developers are a little more adventurous and would like to use the command line (eg git on Linux), then your developers might find git-scm to be the tool for the job. 否则,如果您的开发人员比较冒险,并且想使用命令行(例如Linux上的git),则您的开发人员可能会发现git-scm是完成此任务的工具。

https://git-scm.com/downloads https://git-scm.com/downloads

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM