-
Notifications
You must be signed in to change notification settings - Fork 362
Translate 04-git-server smart-http #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Setting up Smart HTTP is basically just enabling a CGI script that is provided with Git called `git-http-backend` on the server.((git commands, "http-backend")) | ||
This CGI will read the path and headers sent by a `git fetch` or `git push` to an HTTP URL and determine if the client can communicate over HTTP (which is true for any client since version 1.6.6). | ||
If the CGI sees that the client is smart, it will communicate smartly with it, otherwise it will fall back to the dumb behavior (so it is backward compatible for reads with older clients). | ||
通过 `git://` 进行匿名访问 或 SSH 访问,我们可以实现访问鉴权,但是还有一个协议可以同时实现上述两种需求。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我们一般通过 SSH 进行有鉴权访问,通过 git://
进行无鉴权访问,但是还有一种协议可以同时实现以上两种方式的访问。
@branchzero 已完成 |
@sanddudu 已针对意见做出修正,感谢:) |
This CGI will read the path and headers sent by a `git fetch` or `git push` to an HTTP URL and determine if the client can communicate over HTTP (which is true for any client since version 1.6.6). | ||
If the CGI sees that the client is smart, it will communicate smartly with it, otherwise it will fall back to the dumb behavior (so it is backward compatible for reads with older clients). | ||
我们一般通过 SSH 进行鉴权访问,通过 git:// 进行无鉴权访问,但是还有一种协议可以同时实现以上两种方式的访问。 | ||
设置 Smart HTTP 一般只需要在服务器上启用一个 Git 自带的 CGI 脚本,名为 git-http-backend。((git commands, "http-backend")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
启用一个 Git 自带的名为 git-http-backend 的 CGI 脚本
@branchzero 已完成 |
@IceNature 已针对意见做出修正,感谢:) |
Setting up Smart HTTP is basically just enabling a CGI script that is provided with Git called `git-http-backend` on the server.((git commands, "http-backend")) | ||
This CGI will read the path and headers sent by a `git fetch` or `git push` to an HTTP URL and determine if the client can communicate over HTTP (which is true for any client since version 1.6.6). | ||
If the CGI sees that the client is smart, it will communicate smartly with it, otherwise it will fall back to the dumb behavior (so it is backward compatible for reads with older clients). | ||
我们一般通过 SSH 进行鉴权访问,通过 git:// 进行无鉴权访问,但是还有一种协议可以同时实现以上两种方式的访问。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议将"authenticated"翻译与前文统一,一般根据语境翻译成“授权”“验证”等,下同
@branchzero 辛苦了,已审校 |
@morefreeze 感谢指正,已经完善:) |
Translate 04-git-server smart-http
No description provided.