git 如何离线安装 Windows 版 Github?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16646205/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install Github for Windows offline?
提问by Aseem Bansal
As the question says how to install Github for Windows without an internet connection? If it is not possible then is there some alternative client with the following features:
正如问题所说,如何在没有互联网连接的情况下为 Windows 安装 Github?如果不可能,那么是否有一些具有以下功能的替代客户端:
- Support for proxy
- Offline installer
- 支持代理
- 离线安装程序
I found smartgit which has an offline installer but it seems it doesn't have proxy support.
我发现 smartgit 有一个离线安装程序,但它似乎没有代理支持。
If there is no such client then what can be done to extend the functionality of github for windows or some other client? I mean is there a way to use some API to extend it? Any links for that would be helpful.
如果没有这样的客户端,那么可以做些什么来扩展 Windows 或其他客户端的 github 功能?我的意思是有没有办法使用一些 API 来扩展它?任何链接都会有所帮助。
采纳答案by Uberfuzzy
"GitHub for Windows" is one of those magical/annoying ClickOnceapps. They are ideal for apps that tend to require online to operate (like posting to an online source control website...)
“GitHub for Windows”是那些神奇/烦人的ClickOnce应用程序之一。它们非常适合需要在线操作的应用程序(例如发布到在线源代码控制网站......)
Other then the magic "clone to windows" feature from the website, and the self contained SSH auto-management (also semi-annoying), there isn't anything special about it other then being "pretty".
除了网站上神奇的“克隆到 Windows”功能,以及自包含的 SSH 自动管理(也很烦人),除了“漂亮”之外,它没有什么特别之处。
If you really reallyneed offline work, or behind proxies, get something else. GitExtenions is great integration into windows context menus, and a great repo manager, and a not too confusing add/stash/commit interface. It reminds me very much of TortoiseSVN.
如果你真的需要离线工作,或者在代理背后,找别的东西。GitExtenions 很好地集成到 Windows 上下文菜单中,是一个很棒的存储库管理器,以及一个不太混乱的添加/存储/提交界面。它让我想起了 TortoiseSVN。
MSysgit is also an option for GUIs, but is a bit more crude (it looks very 16bit app'ish). Personally, I'd rather use the commandline then it, but thats me and my choices.
MSysgit 也是 GUI 的一个选项,但有点粗糙(它看起来非常 16 位应用程序)。就个人而言,我宁愿使用命令行而不是它,但这就是我和我的选择。
Oh, and lastly, in less then 10 seconds and 1 google search, I found how to set GHfW to work through a proxy using the standard .gitconfig
哦,最后,在不到 10 秒和 1 次谷歌搜索中,我找到了如何使用标准 .gitconfig 通过代理设置 GHfW
回答by Kai
This is the answer I received from the support today (2015-06-30):
这是我今天(2015-06-30)从支持中得到的答案:
Unfortunately we do not have a standalone installer at this time. GitHub for Windows makes use of Microsoft's ClickOnce technology for installation and updates.
We are currently working on an open source replacement for ClickOnce here:
https://github.com/squirrel/squirrel.windows
Once that technology is complete and ready for use, we hope to switch GitHub for Windows to use that. It would allow for a standalone installer.
In the meantime, you can find a list of alternate GUIs available here:
不幸的是,我们目前没有独立的安装程序。Windows 版 GitHub 使用 Microsoft 的 ClickOnce 技术进行安装和更新。
我们目前正在为 ClickOnce 开发一个开源替代品:
https://github.com/squirrel/squirrel.windows
一旦该技术完成并准备好使用,我们希望将 GitHub for Windows 切换为使用它。它将允许独立安装程序。
同时,您可以在此处找到可用的替代 GUI 列表:
回答by Cardin Lee JH
For the current version (as of June 2017) of GitHub Desktop (windows), you can go to https://github-windows.s3.amazonaws.com/standalone/GitHubDesktop.exefor the standalone, offline installer.
对于 GitHub Desktop (windows) 的当前版本(截至 2017 年 6 月),您可以访问https://github-windows.s3.amazonaws.com/standalone/GitHubDesktop.exe获取独立的离线安装程序。
For GitHub Desktop (beta), the team is also working to make it an offline installer hopefully by version 1.0. Currently the installer has some issuesthat prevent it from installing successfully.
对于 GitHub Desktop(测试版),该团队还在努力使其成为离线安装程序,希望在 1.0 版之前。目前,安装程序存在一些问题,无法成功安装。