{"action":"created","comment":{"url":"https://api.github.com/repos/progit/progit2-zh/pulls/comments/36079008","id":36079008,"diff_hunk":"@@ -68,10 +71,10 @@ c6e1e95 (history) fourth commit\n c1822cf first commit\n ----\n \n-It's useful in this case to create a base commit that has instructions on how to expand the history, so other developers know what to do if they hit the first commit in the truncated history and need more. So, what we're going to do is create an initial commit object as our base point with instructions, then rebase the remaining commits (four and five) on top of it.\n-\n-To do that, we need to choose a point to split at, which for us is the third commit, which is `9c68fdc` in SHA-speak. So, our base commit will be based off of that tree. We can create our base commit using the `commit-tree` command, which just takes a tree and will give us a brand new, parentless commit object SHA back.\n+在这个案例中，创建一个基础提交很有用，这个提交拥有如何扩展历史的指令。这样一来，如果其他的开发者在截断的历史中命中第一个提交或需要更多提交时就知晓做什么了。","path":"book/07-git-tools/sections/replace.asc","position":64,"original_position":64,"commit_id":"a4c38f35cef809293f11eb1e192de2409199da53","original_commit_id":"a4c38f35cef809293f11eb1e192de2409199da53","user":{"login":"xff2016","id":12911785,"avatar_url":"https://avatars.githubusercontent.com/u/12911785?v=3","gravatar_id":"","url":"https://api.github.com/users/xff2016","html_url":"https://github.com/xff2016","followers_url":"https://api.github.com/users/xff2016/followers","following_url":"https://api.github.com/users/xff2016/following{/other_user}","gists_url":"https://api.github.com/users/xff2016/gists{/gist_id}","starred_url":"https://api.github.com/users/xff2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xff2016/subscriptions","organizations_url":"https://api.github.com/users/xff2016/orgs","repos_url":"https://api.github.com/users/xff2016/repos","events_url":"https://api.github.com/users/xff2016/events{/privacy}","received_events_url":"https://api.github.com/users/xff2016/received_events","type":"User","site_admin":false},"body":"在这种情况下，创建一个能够指导扩展历史的基础提交是很有用的。这样一来，如果其他的开发者想要修改第一次提交或者其他操作时就知道要做些什么。","created_at":"2015-08-03T12:13:12Z","updated_at":"2015-08-03T12:13:12Z","html_url":"https://github.com/progit/progit2-zh/pull/101#discussion_r36079008","pull_request_url":"https://api.github.com/repos/progit/progit2-zh/pulls/101","_links":{"self":{"href":"https://api.github.com/repos/progit/progit2-zh/pulls/comments/36079008"},"html":{"href":"https://github.com/progit/progit2-zh/pull/101#discussion_r36079008"},"pull_request":{"href":"https://api.github.com/repos/progit/progit2-zh/pulls/101"}}},"pull_request":{"url":"https://api.github.com/repos/progit/progit2-zh/pulls/101","id":37875340,"html_url":"https://github.com/progit/progit2-zh/pull/101","diff_url":"https://github.com/progit/progit2-zh/pull/101.diff","patch_url":"https://github.com/progit/progit2-zh/pull/101.patch","issue_url":"https://api.github.com/repos/progit/progit2-zh/issues/101","number":101,"state":"open","locked":false,"title":"Translate 07-git-tools replace","user":{"login":"Gnahceg","id":3054467,"avatar_url":"https://avatars.githubusercontent.com/u/3054467?v=3","gravatar_id":"","url":"https://api.github.com/users/Gnahceg","html_url":"https://github.com/Gnahceg","followers_url":"https://api.github.com/users/Gnahceg/followers","following_url":"https://api.github.com/users/Gnahceg/following{/other_user}","gists_url":"https://api.github.com/users/Gnahceg/gists{/gist_id}","starred_url":"https://api.github.com/users/Gnahceg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gnahceg/subscriptions","organizations_url":"https://api.github.com/users/Gnahceg/orgs","repos_url":"https://api.github.com/users/Gnahceg/repos","events_url":"https://api.github.com/users/Gnahceg/events{/privacy}","received_events_url":"https://api.github.com/users/Gnahceg/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-17T08:11:42Z","updated_at":"2015-08-03T12:13:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f11ce6cc163495b58026e79c93404706fca67a17","assignee":null,"milestone":{"url":"https://api.github.com/repos/progit/progit2-zh/milestones/1","html_url":"https://github.com/progit/progit2-zh/milestones/v1.0.0","labels_url":"https://api.github.com/repos/progit/progit2-zh/milestones/1/labels","id":1231002,"number":1,"title":"v1.0.0","description":"所有内容翻译完成并经过审校后合并入主干分支。","creator":{"login":"networm","id":440624,"avatar_url":"https://avatars.githubusercontent.com/u/440624?v=3","gravatar_id":"","url":"https://api.github.com/users/networm","html_url":"https://github.com/networm","followers_url":"https://api.github.com/users/networm/followers","following_url":"https://api.github.com/users/networm/following{/other_user}","gists_url":"https://api.github.com/users/networm/gists{/gist_id}","starred_url":"https://api.github.com/users/networm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/networm/subscriptions","organizations_url":"https://api.github.com/users/networm/orgs","repos_url":"https://api.github.com/users/networm/repos","events_url":"https://api.github.com/users/networm/events{/privacy}","received_events_url":"https://api.github.com/users/networm/received_events","type":"User","site_admin":false},"open_issues":47,"closed_issues":8,"state":"open","created_at":"2015-07-29T06:50:16Z","updated_at":"2015-08-03T02:19:43Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/progit/progit2-zh/pulls/101/commits","review_comments_url":"https://api.github.com/repos/progit/progit2-zh/pulls/101/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/101/comments","statuses_url":"https://api.github.com/repos/progit/progit2-zh/statuses/a4c38f35cef809293f11eb1e192de2409199da53","head":{"label":"Gnahceg:master","ref":"master","sha":"a4c38f35cef809293f11eb1e192de2409199da53","user":{"login":"Gnahceg","id":3054467,"avatar_url":"https://avatars.githubusercontent.com/u/3054467?v=3","gravatar_id":"","url":"https://api.github.com/users/Gnahceg","html_url":"https://github.com/Gnahceg","followers_url":"https://api.github.com/users/Gnahceg/followers","following_url":"https://api.github.com/users/Gnahceg/following{/other_user}","gists_url":"https://api.github.com/users/Gnahceg/gists{/gist_id}","starred_url":"https://api.github.com/users/Gnahceg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gnahceg/subscriptions","organizations_url":"https://api.github.com/users/Gnahceg/orgs","repos_url":"https://api.github.com/users/Gnahceg/repos","events_url":"https://api.github.com/users/Gnahceg/events{/privacy}","received_events_url":"https://api.github.com/users/Gnahceg/received_events","type":"User","site_admin":false},"repo":{"id":37570845,"name":"progit2-zh","full_name":"Gnahceg/progit2-zh","owner":{"login":"Gnahceg","id":3054467,"avatar_url":"https://avatars.githubusercontent.com/u/3054467?v=3","gravatar_id":"","url":"https://api.github.com/users/Gnahceg","html_url":"https://github.com/Gnahceg","followers_url":"https://api.github.com/users/Gnahceg/followers","following_url":"https://api.github.com/users/Gnahceg/following{/other_user}","gists_url":"https://api.github.com/users/Gnahceg/gists{/gist_id}","starred_url":"https://api.github.com/users/Gnahceg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gnahceg/subscriptions","organizations_url":"https://api.github.com/users/Gnahceg/orgs","repos_url":"https://api.github.com/users/Gnahceg/repos","events_url":"https://api.github.com/users/Gnahceg/events{/privacy}","received_events_url":"https://api.github.com/users/Gnahceg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Gnahceg/progit2-zh","description":"","fork":true,"url":"https://api.github.com/repos/Gnahceg/progit2-zh","forks_url":"https://api.github.com/repos/Gnahceg/progit2-zh/forks","keys_url":"https://api.github.com/repos/Gnahceg/progit2-zh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gnahceg/progit2-zh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gnahceg/progit2-zh/teams","hooks_url":"https://api.github.com/repos/Gnahceg/progit2-zh/hooks","issue_events_url":"https://api.github.com/repos/Gnahceg/progit2-zh/issues/events{/number}","events_url":"https://api.github.com/repos/Gnahceg/progit2-zh/events","assignees_url":"https://api.github.com/repos/Gnahceg/progit2-zh/assignees{/user}","branches_url":"https://api.github.com/repos/Gnahceg/progit2-zh/branches{/branch}","tags_url":"https://api.github.com/repos/Gnahceg/progit2-zh/tags","blobs_url":"https://api.github.com/repos/Gnahceg/progit2-zh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gnahceg/progit2-zh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gnahceg/progit2-zh/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gnahceg/progit2-zh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gnahceg/progit2-zh/statuses/{sha}","languages_url":"https://api.github.com/repos/Gnahceg/progit2-zh/languages","stargazers_url":"https://api.github.com/repos/Gnahceg/progit2-zh/stargazers","contributors_url":"https://api.github.com/repos/Gnahceg/progit2-zh/contributors","subscribers_url":"https://api.github.com/repos/Gnahceg/progit2-zh/subscribers","subscription_url":"https://api.github.com/repos/Gnahceg/progit2-zh/subscription","commits_url":"https://api.github.com/repos/Gnahceg/progit2-zh/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gnahceg/progit2-zh/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gnahceg/progit2-zh/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gnahceg/progit2-zh/issues/comments{/number}","contents_url":"https://api.github.com/repos/Gnahceg/progit2-zh/contents/{+path}","compare_url":"https://api.github.com/repos/Gnahceg/progit2-zh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gnahceg/progit2-zh/merges","archive_url":"https://api.github.com/repos/Gnahceg/progit2-zh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gnahceg/progit2-zh/downloads","issues_url":"https://api.github.com/repos/Gnahceg/progit2-zh/issues{/number}","pulls_url":"https://api.github.com/repos/Gnahceg/progit2-zh/pulls{/number}","milestones_url":"https://api.github.com/repos/Gnahceg/progit2-zh/milestones{/number}","notifications_url":"https://api.github.com/repos/Gnahceg/progit2-zh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gnahceg/progit2-zh/labels{/name}","releases_url":"https://api.github.com/repos/Gnahceg/progit2-zh/releases{/id}","created_at":"2015-06-17T03:42:10Z","updated_at":"2015-06-17T05:26:30Z","pushed_at":"2015-06-19T10:08:58Z","git_url":"git://github.com/Gnahceg/progit2-zh.git","ssh_url":"git@github.com:Gnahceg/progit2-zh.git","clone_url":"https://github.com/Gnahceg/progit2-zh.git","svn_url":"https://github.com/Gnahceg/progit2-zh","homepage":"","size":159595,"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":"af9ee732e6977aa621e30c8ceb152375f0911346","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-08-02T09:18:55Z","pushed_at":"2015-08-03T11:13:24Z","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":162479,"stargazers_count":292,"watchers_count":292,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":101,"mirror_url":null,"open_issues_count":64,"forks":101,"open_issues":64,"watchers":292,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/progit/progit2-zh/pulls/101"},"html":{"href":"https://github.com/progit/progit2-zh/pull/101"},"issue":{"href":"https://api.github.com/repos/progit/progit2-zh/issues/101"},"comments":{"href":"https://api.github.com/repos/progit/progit2-zh/issues/101/comments"},"review_comments":{"href":"https://api.github.com/repos/progit/progit2-zh/pulls/101/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/101/commits"},"statuses":{"href":"https://api.github.com/repos/progit/progit2-zh/statuses/a4c38f35cef809293f11eb1e192de2409199da53"}}}}