{"action":"created","comment":{"url":"https://api.github.com/repos/progit/progit2-zh/pulls/comments/35393994","id":35393994,"diff_hunk":"@@ -119,49 +119,49 @@ Your object is there, so go ahead and get the whole packfile:\n (13k of binary data)\n ----\n \n-You have your tree object, so you continue walking your commits.\n-They're all also within the packfile you just downloaded, so you don't have to do any more requests to your server.\n-Git checks out a working copy of the `master` branch that was pointed to by the HEAD reference you downloaded at the beginning.\n+现在你也有了你的 tree 对象，你可以继续在提交记录上漫游。\n+它们全部都在这个你刚下载的打包文件里面，所以你不用继续向服务端请求更多下载了。\n+由于刚开始下载的 HEAD 引用指向 `master` 分支，Git 会将它检出到工作目录。\n \n-==== The Smart Protocol\n+==== 智能协议\n \n-The dumb protocol is simple but a bit inefficient, and it can't handle writing of data from the client to the server.\n-The smart protocol is a more common method of transferring data, but it requires a process on the remote end that is intelligent about Git – it can read local data, figure out what the client has and needs, and generate a custom packfile for it.\n-There are two sets of processes for transferring data: a pair for uploading data and a pair for downloading data.\n+哑协议虽然很简单但效率不是很高，而且它不能实现从客户端向服务端发送数据。\n+智能协议是更常用的传送数据的方法，但它需要在服务端运行一个进程，这也是 Git 的智能之处——它可以查看客户端有什么和需要什么内容，然后为它生成合适的打包文件。\n+总共有两组用于传输数据的进程：一对用于上传数据，一对用于下载。\n \n-===== Uploading Data\n+===== 上传数据\n \n (((git commands, send-pack)))(((git commands, receive-pack)))\n-To upload data to a remote process, Git uses the `send-pack` and `receive-pack` processes.\n-The `send-pack` process runs on the client and connects to a `receive-pack` process on the remote side.\n+为了上传数据至远端，Git 使用 `send-pack` 和 `receive-pack` 进程。\n+`send-pack` 进程运行在客户端上，它连接至远端运行的 `receive-pack` 进程。\n \n ====== SSH\n \n-For example, say you run `git push origin master` in your project, and `origin` is defined as a URL that uses the SSH protocol.\n-Git fires up the `send-pack` process, which initiates a connection over SSH to your server.\n-It tries to run a command on the remote server via an SSH call that looks something like this:\n+举例来说，你在你的项目上运行 `git push origin master`, 并且 `origin` 被定义为一个使用 SSH 协议的 URL。","path":"book/10-git-internals/sections/transfer-protocols.asc","position":180,"original_position":180,"commit_id":"0db37784d598493ad2f1c8ce09acb12d52abfd89","original_commit_id":"0db37784d598493ad2f1c8ce09acb12d52abfd89","user":{"login":"byr-gdp","id":9307206,"avatar_url":"https://avatars.githubusercontent.com/u/9307206?v=3","gravatar_id":"","url":"https://api.github.com/users/byr-gdp","html_url":"https://github.com/byr-gdp","followers_url":"https://api.github.com/users/byr-gdp/followers","following_url":"https://api.github.com/users/byr-gdp/following{/other_user}","gists_url":"https://api.github.com/users/byr-gdp/gists{/gist_id}","starred_url":"https://api.github.com/users/byr-gdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byr-gdp/subscriptions","organizations_url":"https://api.github.com/users/byr-gdp/orgs","repos_url":"https://api.github.com/users/byr-gdp/repos","events_url":"https://api.github.com/users/byr-gdp/events{/privacy}","received_events_url":"https://api.github.com/users/byr-gdp/received_events","type":"User","site_admin":false},"body":"举例来说，在项目中使用命令 `git push origin master` 时，`origin` 是由基于SSH协议的URL所定义的。","created_at":"2015-07-24T03:57:47Z","updated_at":"2015-07-24T03:57:47Z","html_url":"https://github.com/progit/progit2-zh/pull/148#discussion_r35393994","pull_request_url":"https://api.github.com/repos/progit/progit2-zh/pulls/148","_links":{"self":{"href":"https://api.github.com/repos/progit/progit2-zh/pulls/comments/35393994"},"html":{"href":"https://github.com/progit/progit2-zh/pull/148#discussion_r35393994"},"pull_request":{"href":"https://api.github.com/repos/progit/progit2-zh/pulls/148"}}},"pull_request":{"url":"https://api.github.com/repos/progit/progit2-zh/pulls/148","id":38427083,"html_url":"https://github.com/progit/progit2-zh/pull/148","diff_url":"https://github.com/progit/progit2-zh/pull/148.diff","patch_url":"https://github.com/progit/progit2-zh/pull/148.patch","issue_url":"https://api.github.com/repos/progit/progit2-zh/issues/148","number":148,"state":"open","locked":false,"title":"Translate 10-git-internals transfer protocols","user":{"login":"zwpaper","id":3764335,"avatar_url":"https://avatars.githubusercontent.com/u/3764335?v=3","gravatar_id":"","url":"https://api.github.com/users/zwpaper","html_url":"https://github.com/zwpaper","followers_url":"https://api.github.com/users/zwpaper/followers","following_url":"https://api.github.com/users/zwpaper/following{/other_user}","gists_url":"https://api.github.com/users/zwpaper/gists{/gist_id}","starred_url":"https://api.github.com/users/zwpaper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zwpaper/subscriptions","organizations_url":"https://api.github.com/users/zwpaper/orgs","repos_url":"https://api.github.com/users/zwpaper/repos","events_url":"https://api.github.com/users/zwpaper/events{/privacy}","received_events_url":"https://api.github.com/users/zwpaper/received_events","type":"User","site_admin":false},"body":"麻烦帮忙斟酌一下以下几个翻译：\r\nline 9: assume\r\nline 14: Git hosts\r\nline 14: on-premises\r\nline 44: walking process\r\nline 155 & 177: capabilities","created_at":"2015-06-24T10:18:57Z","updated_at":"2015-07-24T03:57:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2875de1868657849b64a99b4d2ca22a99ca60a9d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/progit/progit2-zh/pulls/148/commits","review_comments_url":"https://api.github.com/repos/progit/progit2-zh/pulls/148/comments","review_comment_url":"https://api.github.com/repos/progit/progit2-zh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/progit/progit2-zh/issues/148/comments","statuses_url":"https://api.github.com/repos/progit/progit2-zh/statuses/0db37784d598493ad2f1c8ce09acb12d52abfd89","head":{"label":"zwpaper:10_git_internals_transfer_protocols","ref":"10_git_internals_transfer_protocols","sha":"0db37784d598493ad2f1c8ce09acb12d52abfd89","user":{"login":"zwpaper","id":3764335,"avatar_url":"https://avatars.githubusercontent.com/u/3764335?v=3","gravatar_id":"","url":"https://api.github.com/users/zwpaper","html_url":"https://github.com/zwpaper","followers_url":"https://api.github.com/users/zwpaper/followers","following_url":"https://api.github.com/users/zwpaper/following{/other_user}","gists_url":"https://api.github.com/users/zwpaper/gists{/gist_id}","starred_url":"https://api.github.com/users/zwpaper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zwpaper/subscriptions","organizations_url":"https://api.github.com/users/zwpaper/orgs","repos_url":"https://api.github.com/users/zwpaper/repos","events_url":"https://api.github.com/users/zwpaper/events{/privacy}","received_events_url":"https://api.github.com/users/zwpaper/received_events","type":"User","site_admin":false},"repo":{"id":37579263,"name":"progit2-zh","full_name":"zwpaper/progit2-zh","owner":{"login":"zwpaper","id":3764335,"avatar_url":"https://avatars.githubusercontent.com/u/3764335?v=3","gravatar_id":"","url":"https://api.github.com/users/zwpaper","html_url":"https://github.com/zwpaper","followers_url":"https://api.github.com/users/zwpaper/followers","following_url":"https://api.github.com/users/zwpaper/following{/other_user}","gists_url":"https://api.github.com/users/zwpaper/gists{/gist_id}","starred_url":"https://api.github.com/users/zwpaper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zwpaper/subscriptions","organizations_url":"https://api.github.com/users/zwpaper/orgs","repos_url":"https://api.github.com/users/zwpaper/repos","events_url":"https://api.github.com/users/zwpaper/events{/privacy}","received_events_url":"https://api.github.com/users/zwpaper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zwpaper/progit2-zh","description":"","fork":true,"url":"https://api.github.com/repos/zwpaper/progit2-zh","forks_url":"https://api.github.com/repos/zwpaper/progit2-zh/forks","keys_url":"https://api.github.com/repos/zwpaper/progit2-zh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zwpaper/progit2-zh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zwpaper/progit2-zh/teams","hooks_url":"https://api.github.com/repos/zwpaper/progit2-zh/hooks","issue_events_url":"https://api.github.com/repos/zwpaper/progit2-zh/issues/events{/number}","events_url":"https://api.github.com/repos/zwpaper/progit2-zh/events","assignees_url":"https://api.github.com/repos/zwpaper/progit2-zh/assignees{/user}","branches_url":"https://api.github.com/repos/zwpaper/progit2-zh/branches{/branch}","tags_url":"https://api.github.com/repos/zwpaper/progit2-zh/tags","blobs_url":"https://api.github.com/repos/zwpaper/progit2-zh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zwpaper/progit2-zh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zwpaper/progit2-zh/git/refs{/sha}","trees_url":"https://api.github.com/repos/zwpaper/progit2-zh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zwpaper/progit2-zh/statuses/{sha}","languages_url":"https://api.github.com/repos/zwpaper/progit2-zh/languages","stargazers_url":"https://api.github.com/repos/zwpaper/progit2-zh/stargazers","contributors_url":"https://api.github.com/repos/zwpaper/progit2-zh/contributors","subscribers_url":"https://api.github.com/repos/zwpaper/progit2-zh/subscribers","subscription_url":"https://api.github.com/repos/zwpaper/progit2-zh/subscription","commits_url":"https://api.github.com/repos/zwpaper/progit2-zh/commits{/sha}","git_commits_url":"https://api.github.com/repos/zwpaper/progit2-zh/git/commits{/sha}","comments_url":"https://api.github.com/repos/zwpaper/progit2-zh/comments{/number}","issue_comment_url":"https://api.github.com/repos/zwpaper/progit2-zh/issues/comments{/number}","contents_url":"https://api.github.com/repos/zwpaper/progit2-zh/contents/{+path}","compare_url":"https://api.github.com/repos/zwpaper/progit2-zh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zwpaper/progit2-zh/merges","archive_url":"https://api.github.com/repos/zwpaper/progit2-zh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zwpaper/progit2-zh/downloads","issues_url":"https://api.github.com/repos/zwpaper/progit2-zh/issues{/number}","pulls_url":"https://api.github.com/repos/zwpaper/progit2-zh/pulls{/number}","milestones_url":"https://api.github.com/repos/zwpaper/progit2-zh/milestones{/number}","notifications_url":"https://api.github.com/repos/zwpaper/progit2-zh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zwpaper/progit2-zh/labels{/name}","releases_url":"https://api.github.com/repos/zwpaper/progit2-zh/releases{/id}","created_at":"2015-06-17T07:22:39Z","updated_at":"2015-06-17T07:22:40Z","pushed_at":"2015-07-06T08:49:43Z","git_url":"git://github.com/zwpaper/progit2-zh.git","ssh_url":"git@github.com:zwpaper/progit2-zh.git","clone_url":"https://github.com/zwpaper/progit2-zh.git","svn_url":"https://github.com/zwpaper/progit2-zh","homepage":null,"size":159637,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"progit:master","ref":"master","sha":"e5c830698c65c0959863398ad65ad5a11a58c7dd","user":{"login":"progit","id":95588,"avatar_url":"https://avatars.githubusercontent.com/u/95588?v=3","gravatar_id":"","url":"https://api.github.com/users/progit","html_url":"https://github.com/progit","followers_url":"https://api.github.com/users/progit/followers","following_url":"https://api.github.com/users/progit/following{/other_user}","gists_url":"https://api.github.com/users/progit/gists{/gist_id}","starred_url":"https://api.github.com/users/progit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progit/subscriptions","organizations_url":"https://api.github.com/users/progit/orgs","repos_url":"https://api.github.com/users/progit/repos","events_url":"https://api.github.com/users/progit/events{/privacy}","received_events_url":"https://api.github.com/users/progit/received_events","type":"Organization","site_admin":false},"repo":{"id":26017730,"name":"progit2-zh","full_name":"progit/progit2-zh","owner":{"login":"progit","id":95588,"avatar_url":"https://avatars.githubusercontent.com/u/95588?v=3","gravatar_id":"","url":"https://api.github.com/users/progit","html_url":"https://github.com/progit","followers_url":"https://api.github.com/users/progit/followers","following_url":"https://api.github.com/users/progit/following{/other_user}","gists_url":"https://api.github.com/users/progit/gists{/gist_id}","starred_url":"https://api.github.com/users/progit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progit/subscriptions","organizations_url":"https://api.github.com/users/progit/orgs","repos_url":"https://api.github.com/users/progit/repos","events_url":"https://api.github.com/users/progit/events{/privacy}","received_events_url":"https://api.github.com/users/progit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/progit/progit2-zh","description":"","fork":false,"url":"https://api.github.com/repos/progit/progit2-zh","forks_url":"https://api.github.com/repos/progit/progit2-zh/forks","keys_url":"https://api.github.com/repos/progit/progit2-zh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/progit/progit2-zh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/progit/progit2-zh/teams","hooks_url":"https://api.github.com/repos/progit/progit2-zh/hooks","issue_events_url":"https://api.github.com/repos/progit/progit2-zh/issues/events{/number}","events_url":"https://api.github.com/repos/progit/progit2-zh/events","assignees_url":"https://api.github.com/repos/progit/progit2-zh/assignees{/user}","branches_url":"https://api.github.com/repos/progit/progit2-zh/branches{/branch}","tags_url":"https://api.github.com/repos/progit/progit2-zh/tags","blobs_url":"https://api.github.com/repos/progit/progit2-zh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/progit/progit2-zh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/progit/progit2-zh/git/refs{/sha}","trees_url":"https://api.github.com/repos/progit/progit2-zh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/progit/progit2-zh/statuses/{sha}","languages_url":"https://api.github.com/repos/progit/progit2-zh/languages","stargazers_url":"https://api.github.com/repos/progit/progit2-zh/stargazers","contributors_url":"https://api.github.com/repos/progit/progit2-zh/contributors","subscribers_url":"https://api.github.com/repos/progit/progit2-zh/subscribers","subscription_url":"https://api.github.com/repos/progit/progit2-zh/subscription","commits_url":"https://api.github.com/repos/progit/progit2-zh/commits{/sha}","git_commits_url":"https://api.github.com/repos/progit/progit2-zh/git/commits{/sha}","comments_url":"https://api.github.com/repos/progit/progit2-zh/comments{/number}","issue_comment_url":"https://api.github.com/repos/progit/progit2-zh/issues/comments{/number}","contents_url":"https://api.github.com/repos/progit/progit2-zh/contents/{+path}","compare_url":"https://api.github.com/repos/progit/progit2-zh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/progit/progit2-zh/merges","archive_url":"https://api.github.com/repos/progit/progit2-zh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/progit/progit2-zh/downloads","issues_url":"https://api.github.com/repos/progit/progit2-zh/issues{/number}","pulls_url":"https://api.github.com/repos/progit/progit2-zh/pulls{/number}","milestones_url":"https://api.github.com/repos/progit/progit2-zh/milestones{/number}","notifications_url":"https://api.github.com/repos/progit/progit2-zh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/progit/progit2-zh/labels{/name}","releases_url":"https://api.github.com/repos/progit/progit2-zh/releases{/id}","created_at":"2014-10-31T13:43:10Z","updated_at":"2015-07-23T12:41:08Z","pushed_at":"2015-07-24T03:29:14Z","git_url":"git://github.com/progit/progit2-zh.git","ssh_url":"git@github.com:progit/progit2-zh.git","clone_url":"https://github.com/progit/progit2-zh.git","svn_url":"https://github.com/progit/progit2-zh","homepage":null,"size":161088,"stargazers_count":265,"watchers_count":265,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":95,"mirror_url":null,"open_issues_count":90,"forks":95,"open_issues":90,"watchers":265,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/progit/progit2-zh/pulls/148"},"html":{"href":"https://github.com/progit/progit2-zh/pull/148"},"issue":{"href":"https://api.github.com/repos/progit/progit2-zh/issues/148"},"comments":{"href":"https://api.github.com/repos/progit/progit2-zh/issues/148/comments"},"review_comments":{"href":"https://api.github.com/repos/progit/progit2-zh/pulls/148/comments"},"review_comment":{"href":"https://api.github.com/repos/progit/progit2-zh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/progit/progit2-zh/pulls/148/commits"},"statuses":{"href":"https://api.github.com/repos/progit/progit2-zh/statuses/0db37784d598493ad2f1c8ce09acb12d52abfd89"}}}}