{"action":"created","comment":{"url":"https://api.github.com/repos/tldr-pages/tldr/pulls/comments/76000044","id":76000044,"diff_hunk":"@@ -4,12 +4,16 @@\n \n - Switch to another branch:\n \n-`git checkout {{BRANCH-NAME}}`\n+`git checkout {{branch_name}}`\n \n - Create and switch to a new branch:\n \n-`git checkout -b {{BRANCH-NAME}}`\n+`git checkout -b {{branch_name}}`\n \n - Undo unstaged local modification:\n \n `git checkout .`\n+\n+- Checkout a file from another branch:","path":"pages/common/git-checkout.md","position":16,"original_position":16,"commit_id":"bd72cdc43a028262fcea3e88bb3517497b954a8a","original_commit_id":"bd72cdc43a028262fcea3e88bb3517497b954a8a","user":{"login":"agnivade","id":1774000,"avatar_url":"https://avatars.githubusercontent.com/u/1774000?v=3","gravatar_id":"","url":"https://api.github.com/users/agnivade","html_url":"https://github.com/agnivade","followers_url":"https://api.github.com/users/agnivade/followers","following_url":"https://api.github.com/users/agnivade/following{/other_user}","gists_url":"https://api.github.com/users/agnivade/gists{/gist_id}","starred_url":"https://api.github.com/users/agnivade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agnivade/subscriptions","organizations_url":"https://api.github.com/users/agnivade/orgs","repos_url":"https://api.github.com/users/agnivade/repos","events_url":"https://api.github.com/users/agnivade/events{/privacy}","received_events_url":"https://api.github.com/users/agnivade/received_events","type":"User","site_admin":false},"body":"I would refrain from using the word \"checkout\" as we are trying to explain what \"checkout\" means in the first place. How about - \"Replace the contents of {{file_name}} in the current branch with {{branch_name}}\" ? Or something on those lines ..","created_at":"2016-08-24T06:18:29Z","updated_at":"2016-08-24T06:18:29Z","html_url":"https://github.com/tldr-pages/tldr/pull/1016#discussion_r76000044","pull_request_url":"https://api.github.com/repos/tldr-pages/tldr/pulls/1016","_links":{"self":{"href":"https://api.github.com/repos/tldr-pages/tldr/pulls/comments/76000044"},"html":{"href":"https://github.com/tldr-pages/tldr/pull/1016#discussion_r76000044"},"pull_request":{"href":"https://api.github.com/repos/tldr-pages/tldr/pulls/1016"}}},"pull_request":{"url":"https://api.github.com/repos/tldr-pages/tldr/pulls/1016","id":82426718,"html_url":"https://github.com/tldr-pages/tldr/pull/1016","diff_url":"https://github.com/tldr-pages/tldr/pull/1016.diff","patch_url":"https://github.com/tldr-pages/tldr/pull/1016.patch","issue_url":"https://api.github.com/repos/tldr-pages/tldr/issues/1016","number":1016,"state":"open","locked":false,"title":"Add git-checkout example for files across branches","user":{"login":"sethwoodworth","id":123998,"avatar_url":"https://avatars.githubusercontent.com/u/123998?v=3","gravatar_id":"","url":"https://api.github.com/users/sethwoodworth","html_url":"https://github.com/sethwoodworth","followers_url":"https://api.github.com/users/sethwoodworth/followers","following_url":"https://api.github.com/users/sethwoodworth/following{/other_user}","gists_url":"https://api.github.com/users/sethwoodworth/gists{/gist_id}","starred_url":"https://api.github.com/users/sethwoodworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethwoodworth/subscriptions","organizations_url":"https://api.github.com/users/sethwoodworth/orgs","repos_url":"https://api.github.com/users/sethwoodworth/repos","events_url":"https://api.github.com/users/sethwoodworth/events{/privacy}","received_events_url":"https://api.github.com/users/sethwoodworth/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-23T19:33:40Z","updated_at":"2016-08-24T06:18:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e9b275ff5c48e20e5651c0d86e4974caa11abb6b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tldr-pages/tldr/pulls/1016/commits","review_comments_url":"https://api.github.com/repos/tldr-pages/tldr/pulls/1016/comments","review_comment_url":"https://api.github.com/repos/tldr-pages/tldr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tldr-pages/tldr/issues/1016/comments","statuses_url":"https://api.github.com/repos/tldr-pages/tldr/statuses/bd72cdc43a028262fcea3e88bb3517497b954a8a","head":{"label":"sethwoodworth:patch-1","ref":"patch-1","sha":"bd72cdc43a028262fcea3e88bb3517497b954a8a","user":{"login":"sethwoodworth","id":123998,"avatar_url":"https://avatars.githubusercontent.com/u/123998?v=3","gravatar_id":"","url":"https://api.github.com/users/sethwoodworth","html_url":"https://github.com/sethwoodworth","followers_url":"https://api.github.com/users/sethwoodworth/followers","following_url":"https://api.github.com/users/sethwoodworth/following{/other_user}","gists_url":"https://api.github.com/users/sethwoodworth/gists{/gist_id}","starred_url":"https://api.github.com/users/sethwoodworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethwoodworth/subscriptions","organizations_url":"https://api.github.com/users/sethwoodworth/orgs","repos_url":"https://api.github.com/users/sethwoodworth/repos","events_url":"https://api.github.com/users/sethwoodworth/events{/privacy}","received_events_url":"https://api.github.com/users/sethwoodworth/received_events","type":"User","site_admin":false},"repo":{"id":48769789,"name":"tldr","full_name":"sethwoodworth/tldr","owner":{"login":"sethwoodworth","id":123998,"avatar_url":"https://avatars.githubusercontent.com/u/123998?v=3","gravatar_id":"","url":"https://api.github.com/users/sethwoodworth","html_url":"https://github.com/sethwoodworth","followers_url":"https://api.github.com/users/sethwoodworth/followers","following_url":"https://api.github.com/users/sethwoodworth/following{/other_user}","gists_url":"https://api.github.com/users/sethwoodworth/gists{/gist_id}","starred_url":"https://api.github.com/users/sethwoodworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethwoodworth/subscriptions","organizations_url":"https://api.github.com/users/sethwoodworth/orgs","repos_url":"https://api.github.com/users/sethwoodworth/repos","events_url":"https://api.github.com/users/sethwoodworth/events{/privacy}","received_events_url":"https://api.github.com/users/sethwoodworth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sethwoodworth/tldr","description":"Simplified and community-driven man pages","fork":true,"url":"https://api.github.com/repos/sethwoodworth/tldr","forks_url":"https://api.github.com/repos/sethwoodworth/tldr/forks","keys_url":"https://api.github.com/repos/sethwoodworth/tldr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sethwoodworth/tldr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sethwoodworth/tldr/teams","hooks_url":"https://api.github.com/repos/sethwoodworth/tldr/hooks","issue_events_url":"https://api.github.com/repos/sethwoodworth/tldr/issues/events{/number}","events_url":"https://api.github.com/repos/sethwoodworth/tldr/events","assignees_url":"https://api.github.com/repos/sethwoodworth/tldr/assignees{/user}","branches_url":"https://api.github.com/repos/sethwoodworth/tldr/branches{/branch}","tags_url":"https://api.github.com/repos/sethwoodworth/tldr/tags","blobs_url":"https://api.github.com/repos/sethwoodworth/tldr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sethwoodworth/tldr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sethwoodworth/tldr/git/refs{/sha}","trees_url":"https://api.github.com/repos/sethwoodworth/tldr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sethwoodworth/tldr/statuses/{sha}","languages_url":"https://api.github.com/repos/sethwoodworth/tldr/languages","stargazers_url":"https://api.github.com/repos/sethwoodworth/tldr/stargazers","contributors_url":"https://api.github.com/repos/sethwoodworth/tldr/contributors","subscribers_url":"https://api.github.com/repos/sethwoodworth/tldr/subscribers","subscription_url":"https://api.github.com/repos/sethwoodworth/tldr/subscription","commits_url":"https://api.github.com/repos/sethwoodworth/tldr/commits{/sha}","git_commits_url":"https://api.github.com/repos/sethwoodworth/tldr/git/commits{/sha}","comments_url":"https://api.github.com/repos/sethwoodworth/tldr/comments{/number}","issue_comment_url":"https://api.github.com/repos/sethwoodworth/tldr/issues/comments{/number}","contents_url":"https://api.github.com/repos/sethwoodworth/tldr/contents/{+path}","compare_url":"https://api.github.com/repos/sethwoodworth/tldr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sethwoodworth/tldr/merges","archive_url":"https://api.github.com/repos/sethwoodworth/tldr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sethwoodworth/tldr/downloads","issues_url":"https://api.github.com/repos/sethwoodworth/tldr/issues{/number}","pulls_url":"https://api.github.com/repos/sethwoodworth/tldr/pulls{/number}","milestones_url":"https://api.github.com/repos/sethwoodworth/tldr/milestones{/number}","notifications_url":"https://api.github.com/repos/sethwoodworth/tldr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sethwoodworth/tldr/labels{/name}","releases_url":"https://api.github.com/repos/sethwoodworth/tldr/releases{/id}","deployments_url":"https://api.github.com/repos/sethwoodworth/tldr/deployments","created_at":"2015-12-29T22:26:22Z","updated_at":"2015-12-29T22:26:25Z","pushed_at":"2016-08-24T01:30:29Z","git_url":"git://github.com/sethwoodworth/tldr.git","ssh_url":"git@github.com:sethwoodworth/tldr.git","clone_url":"https://github.com/sethwoodworth/tldr.git","svn_url":"https://github.com/sethwoodworth/tldr","homepage":"http://tldr-pages.github.io/","size":1309,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"tldr-pages:master","ref":"master","sha":"a07b6f9e1e98b336e05f893d1f39ac0a0ba47804","user":{"login":"tldr-pages","id":7366472,"avatar_url":"https://avatars.githubusercontent.com/u/7366472?v=3","gravatar_id":"","url":"https://api.github.com/users/tldr-pages","html_url":"https://github.com/tldr-pages","followers_url":"https://api.github.com/users/tldr-pages/followers","following_url":"https://api.github.com/users/tldr-pages/following{/other_user}","gists_url":"https://api.github.com/users/tldr-pages/gists{/gist_id}","starred_url":"https://api.github.com/users/tldr-pages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tldr-pages/subscriptions","organizations_url":"https://api.github.com/users/tldr-pages/orgs","repos_url":"https://api.github.com/users/tldr-pages/repos","events_url":"https://api.github.com/users/tldr-pages/events{/privacy}","received_events_url":"https://api.github.com/users/tldr-pages/received_events","type":"Organization","site_admin":false},"repo":{"id":15019962,"name":"tldr","full_name":"tldr-pages/tldr","owner":{"login":"tldr-pages","id":7366472,"avatar_url":"https://avatars.githubusercontent.com/u/7366472?v=3","gravatar_id":"","url":"https://api.github.com/users/tldr-pages","html_url":"https://github.com/tldr-pages","followers_url":"https://api.github.com/users/tldr-pages/followers","following_url":"https://api.github.com/users/tldr-pages/following{/other_user}","gists_url":"https://api.github.com/users/tldr-pages/gists{/gist_id}","starred_url":"https://api.github.com/users/tldr-pages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tldr-pages/subscriptions","organizations_url":"https://api.github.com/users/tldr-pages/orgs","repos_url":"https://api.github.com/users/tldr-pages/repos","events_url":"https://api.github.com/users/tldr-pages/events{/privacy}","received_events_url":"https://api.github.com/users/tldr-pages/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tldr-pages/tldr","description":":books: Simplified and community-driven man pages","fork":false,"url":"https://api.github.com/repos/tldr-pages/tldr","forks_url":"https://api.github.com/repos/tldr-pages/tldr/forks","keys_url":"https://api.github.com/repos/tldr-pages/tldr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tldr-pages/tldr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tldr-pages/tldr/teams","hooks_url":"https://api.github.com/repos/tldr-pages/tldr/hooks","issue_events_url":"https://api.github.com/repos/tldr-pages/tldr/issues/events{/number}","events_url":"https://api.github.com/repos/tldr-pages/tldr/events","assignees_url":"https://api.github.com/repos/tldr-pages/tldr/assignees{/user}","branches_url":"https://api.github.com/repos/tldr-pages/tldr/branches{/branch}","tags_url":"https://api.github.com/repos/tldr-pages/tldr/tags","blobs_url":"https://api.github.com/repos/tldr-pages/tldr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tldr-pages/tldr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tldr-pages/tldr/git/refs{/sha}","trees_url":"https://api.github.com/repos/tldr-pages/tldr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tldr-pages/tldr/statuses/{sha}","languages_url":"https://api.github.com/repos/tldr-pages/tldr/languages","stargazers_url":"https://api.github.com/repos/tldr-pages/tldr/stargazers","contributors_url":"https://api.github.com/repos/tldr-pages/tldr/contributors","subscribers_url":"https://api.github.com/repos/tldr-pages/tldr/subscribers","subscription_url":"https://api.github.com/repos/tldr-pages/tldr/subscription","commits_url":"https://api.github.com/repos/tldr-pages/tldr/commits{/sha}","git_commits_url":"https://api.github.com/repos/tldr-pages/tldr/git/commits{/sha}","comments_url":"https://api.github.com/repos/tldr-pages/tldr/comments{/number}","issue_comment_url":"https://api.github.com/repos/tldr-pages/tldr/issues/comments{/number}","contents_url":"https://api.github.com/repos/tldr-pages/tldr/contents/{+path}","compare_url":"https://api.github.com/repos/tldr-pages/tldr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tldr-pages/tldr/merges","archive_url":"https://api.github.com/repos/tldr-pages/tldr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tldr-pages/tldr/downloads","issues_url":"https://api.github.com/repos/tldr-pages/tldr/issues{/number}","pulls_url":"https://api.github.com/repos/tldr-pages/tldr/pulls{/number}","milestones_url":"https://api.github.com/repos/tldr-pages/tldr/milestones{/number}","notifications_url":"https://api.github.com/repos/tldr-pages/tldr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tldr-pages/tldr/labels{/name}","releases_url":"https://api.github.com/repos/tldr-pages/tldr/releases{/id}","deployments_url":"https://api.github.com/repos/tldr-pages/tldr/deployments","created_at":"2013-12-08T07:34:43Z","updated_at":"2016-08-23T14:23:06Z","pushed_at":"2016-08-24T01:30:30Z","git_url":"git://github.com/tldr-pages/tldr.git","ssh_url":"git@github.com:tldr-pages/tldr.git","clone_url":"https://github.com/tldr-pages/tldr.git","svn_url":"https://github.com/tldr-pages/tldr","homepage":"http://tldr-pages.github.io/","size":2345,"stargazers_count":8098,"watchers_count":8098,"language":"TeX","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":578,"mirror_url":null,"open_issues_count":53,"forks":578,"open_issues":53,"watchers":8098,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tldr-pages/tldr/pulls/1016"},"html":{"href":"https://github.com/tldr-pages/tldr/pull/1016"},"issue":{"href":"https://api.github.com/repos/tldr-pages/tldr/issues/1016"},"comments":{"href":"https://api.github.com/repos/tldr-pages/tldr/issues/1016/comments"},"review_comments":{"href":"https://api.github.com/repos/tldr-pages/tldr/pulls/1016/comments"},"review_comment":{"href":"https://api.github.com/repos/tldr-pages/tldr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tldr-pages/tldr/pulls/1016/commits"},"statuses":{"href":"https://api.github.com/repos/tldr-pages/tldr/statuses/bd72cdc43a028262fcea3e88bb3517497b954a8a"}}}}
{"actor":{"display_login":"agnivade"}}