{"action":"created","comment":{"url":"https://api.github.com/repos/thejunto/meta-notes/pulls/comments/29198828","id":29198828,"diff_hunk":"@@ -0,0 +1,34 @@\n+---\n+layout:     post\n+title:      Learning Git with Mario Bros\n+date:       2015-04-27 09:41:29\n+summary:    Like playing Mario Bros? Here's one programming lesson hidden in the famous videogame.\n+categories: code\n+author:     stefy\n+---\n+![mariobros](/images/mariobros.jpg)\n+\n+\n+###What Mario Bros and GitHub have in common:\n+\n+Part of learning how to program is understanding how GitHub works. Github is an open source project started by Linux creator Linus Torvalds. It basically allows you to make changes to a project by copying the repository to your own system. Then you can make your changes on your local copy and “check them in” to the central server. When I had trouble putting this to practice, Max, our awesome, back-end lead, came up with this brilliant, yet simple, explanation:\n+\n+Max began explaining that a **commit** is just like a \"checkpoint\": a snapshot of your files in a determined point in time. Now, imagine you are in a Mario game. You're in the middle of world 4.  All you see is where you are right now: you have 50 tokens and 3 lives while you are running for you life! You want to know how many lives and chips you had when you crossed the last \"checkpoint\" (meaning when you passed from world 3 to 4). \n+\n+To do that, you use `git checkout` (hereinafter referred to as `git co`). Now, what `git co` allows you is traveling through time to achieve what you want. Next, you write `git co HEAD~1` (because the last commit was made when changing worlds). Now this does not mean you have to go back through all levels of world 4. Instead, it lets you see what was going on in the past.  Once satisfied with your changes, you write `git co master` and return to where you were. ","path":"_posts/tumblr/2015-04-27-learning-git-with-mario-bros.md","position":18,"original_position":18,"commit_id":"9da599767a6af2df6beeb41941ee15fb446a4710","original_commit_id":"9da599767a6af2df6beeb41941ee15fb446a4710","user":{"login":"maxhm10","id":6092334,"avatar_url":"https://avatars.githubusercontent.com/u/6092334?v=3","gravatar_id":"","url":"https://api.github.com/users/maxhm10","html_url":"https://github.com/maxhm10","followers_url":"https://api.github.com/users/maxhm10/followers","following_url":"https://api.github.com/users/maxhm10/following{/other_user}","gists_url":"https://api.github.com/users/maxhm10/gists{/gist_id}","starred_url":"https://api.github.com/users/maxhm10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxhm10/subscriptions","organizations_url":"https://api.github.com/users/maxhm10/orgs","repos_url":"https://api.github.com/users/maxhm10/repos","events_url":"https://api.github.com/users/maxhm10/events{/privacy}","received_events_url":"https://api.github.com/users/maxhm10/received_events","type":"User","site_admin":false},"body":"Está un poco confuso este párrafo. Creo que podría ser más claro si especificas qué significa \"achieve what you want\". What is my problem, How does `git co` solve it? Y después hacer el walk thru step by step","created_at":"2015-04-27T22:35:40Z","updated_at":"2015-04-27T22:35:40Z","html_url":"https://github.com/thejunto/meta-notes/pull/2#discussion_r29198828","pull_request_url":"https://api.github.com/repos/thejunto/meta-notes/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/thejunto/meta-notes/pulls/comments/29198828"},"html":{"href":"https://github.com/thejunto/meta-notes/pull/2#discussion_r29198828"},"pull_request":{"href":"https://api.github.com/repos/thejunto/meta-notes/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/thejunto/meta-notes/pulls/2","id":34195334,"html_url":"https://github.com/thejunto/meta-notes/pull/2","diff_url":"https://github.com/thejunto/meta-notes/pull/2.diff","patch_url":"https://github.com/thejunto/meta-notes/pull/2.patch","issue_url":"https://api.github.com/repos/thejunto/meta-notes/issues/2","number":2,"state":"closed","locked":false,"title":"Mario bros post","user":{"login":"stefyb14","id":10102499,"avatar_url":"https://avatars.githubusercontent.com/u/10102499?v=3","gravatar_id":"","url":"https://api.github.com/users/stefyb14","html_url":"https://github.com/stefyb14","followers_url":"https://api.github.com/users/stefyb14/followers","following_url":"https://api.github.com/users/stefyb14/following{/other_user}","gists_url":"https://api.github.com/users/stefyb14/gists{/gist_id}","starred_url":"https://api.github.com/users/stefyb14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefyb14/subscriptions","organizations_url":"https://api.github.com/users/stefyb14/orgs","repos_url":"https://api.github.com/users/stefyb14/repos","events_url":"https://api.github.com/users/stefyb14/events{/privacy}","received_events_url":"https://api.github.com/users/stefyb14/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-27T18:19:05Z","updated_at":"2015-04-27T22:35:40Z","closed_at":"2015-04-27T19:57:51Z","merged_at":"2015-04-27T19:57:51Z","merge_commit_sha":"50f41aed6662913785d4c329b144cd18aa9aac14","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thejunto/meta-notes/pulls/2/commits","review_comments_url":"https://api.github.com/repos/thejunto/meta-notes/pulls/2/comments","review_comment_url":"https://api.github.com/repos/thejunto/meta-notes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thejunto/meta-notes/issues/2/comments","statuses_url":"https://api.github.com/repos/thejunto/meta-notes/statuses/9da599767a6af2df6beeb41941ee15fb446a4710","head":{"label":"thejunto:what-git-and-mario-bros-have-in-common","ref":"what-git-and-mario-bros-have-in-common","sha":"9da599767a6af2df6beeb41941ee15fb446a4710","user":{"login":"thejunto","id":10178608,"avatar_url":"https://avatars.githubusercontent.com/u/10178608?v=3","gravatar_id":"","url":"https://api.github.com/users/thejunto","html_url":"https://github.com/thejunto","followers_url":"https://api.github.com/users/thejunto/followers","following_url":"https://api.github.com/users/thejunto/following{/other_user}","gists_url":"https://api.github.com/users/thejunto/gists{/gist_id}","starred_url":"https://api.github.com/users/thejunto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejunto/subscriptions","organizations_url":"https://api.github.com/users/thejunto/orgs","repos_url":"https://api.github.com/users/thejunto/repos","events_url":"https://api.github.com/users/thejunto/events{/privacy}","received_events_url":"https://api.github.com/users/thejunto/received_events","type":"Organization","site_admin":false},"repo":{"id":34460968,"name":"meta-notes","full_name":"thejunto/meta-notes","owner":{"login":"thejunto","id":10178608,"avatar_url":"https://avatars.githubusercontent.com/u/10178608?v=3","gravatar_id":"","url":"https://api.github.com/users/thejunto","html_url":"https://github.com/thejunto","followers_url":"https://api.github.com/users/thejunto/followers","following_url":"https://api.github.com/users/thejunto/following{/other_user}","gists_url":"https://api.github.com/users/thejunto/gists{/gist_id}","starred_url":"https://api.github.com/users/thejunto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejunto/subscriptions","organizations_url":"https://api.github.com/users/thejunto/orgs","repos_url":"https://api.github.com/users/thejunto/repos","events_url":"https://api.github.com/users/thejunto/events{/privacy}","received_events_url":"https://api.github.com/users/thejunto/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thejunto/meta-notes","description":"Meta notes, a blog for independent learners.","fork":true,"url":"https://api.github.com/repos/thejunto/meta-notes","forks_url":"https://api.github.com/repos/thejunto/meta-notes/forks","keys_url":"https://api.github.com/repos/thejunto/meta-notes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thejunto/meta-notes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thejunto/meta-notes/teams","hooks_url":"https://api.github.com/repos/thejunto/meta-notes/hooks","issue_events_url":"https://api.github.com/repos/thejunto/meta-notes/issues/events{/number}","events_url":"https://api.github.com/repos/thejunto/meta-notes/events","assignees_url":"https://api.github.com/repos/thejunto/meta-notes/assignees{/user}","branches_url":"https://api.github.com/repos/thejunto/meta-notes/branches{/branch}","tags_url":"https://api.github.com/repos/thejunto/meta-notes/tags","blobs_url":"https://api.github.com/repos/thejunto/meta-notes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thejunto/meta-notes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thejunto/meta-notes/git/refs{/sha}","trees_url":"https://api.github.com/repos/thejunto/meta-notes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thejunto/meta-notes/statuses/{sha}","languages_url":"https://api.github.com/repos/thejunto/meta-notes/languages","stargazers_url":"https://api.github.com/repos/thejunto/meta-notes/stargazers","contributors_url":"https://api.github.com/repos/thejunto/meta-notes/contributors","subscribers_url":"https://api.github.com/repos/thejunto/meta-notes/subscribers","subscription_url":"https://api.github.com/repos/thejunto/meta-notes/subscription","commits_url":"https://api.github.com/repos/thejunto/meta-notes/commits{/sha}","git_commits_url":"https://api.github.com/repos/thejunto/meta-notes/git/commits{/sha}","comments_url":"https://api.github.com/repos/thejunto/meta-notes/comments{/number}","issue_comment_url":"https://api.github.com/repos/thejunto/meta-notes/issues/comments{/number}","contents_url":"https://api.github.com/repos/thejunto/meta-notes/contents/{+path}","compare_url":"https://api.github.com/repos/thejunto/meta-notes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thejunto/meta-notes/merges","archive_url":"https://api.github.com/repos/thejunto/meta-notes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thejunto/meta-notes/downloads","issues_url":"https://api.github.com/repos/thejunto/meta-notes/issues{/number}","pulls_url":"https://api.github.com/repos/thejunto/meta-notes/pulls{/number}","milestones_url":"https://api.github.com/repos/thejunto/meta-notes/milestones{/number}","notifications_url":"https://api.github.com/repos/thejunto/meta-notes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thejunto/meta-notes/labels{/name}","releases_url":"https://api.github.com/repos/thejunto/meta-notes/releases{/id}","created_at":"2015-04-23T14:23:21Z","updated_at":"2015-04-27T20:03:11Z","pushed_at":"2015-04-27T20:22:32Z","git_url":"git://github.com/thejunto/meta-notes.git","ssh_url":"git@github.com:thejunto/meta-notes.git","clone_url":"https://github.com/thejunto/meta-notes.git","svn_url":"https://github.com/thejunto/meta-notes","homepage":"http://metanot.es","size":1387,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"thejunto:gh-pages","ref":"gh-pages","sha":"87b835d2e7a71e505de636cc5561cc7ad9a45a9f","user":{"login":"thejunto","id":10178608,"avatar_url":"https://avatars.githubusercontent.com/u/10178608?v=3","gravatar_id":"","url":"https://api.github.com/users/thejunto","html_url":"https://github.com/thejunto","followers_url":"https://api.github.com/users/thejunto/followers","following_url":"https://api.github.com/users/thejunto/following{/other_user}","gists_url":"https://api.github.com/users/thejunto/gists{/gist_id}","starred_url":"https://api.github.com/users/thejunto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejunto/subscriptions","organizations_url":"https://api.github.com/users/thejunto/orgs","repos_url":"https://api.github.com/users/thejunto/repos","events_url":"https://api.github.com/users/thejunto/events{/privacy}","received_events_url":"https://api.github.com/users/thejunto/received_events","type":"Organization","site_admin":false},"repo":{"id":34460968,"name":"meta-notes","full_name":"thejunto/meta-notes","owner":{"login":"thejunto","id":10178608,"avatar_url":"https://avatars.githubusercontent.com/u/10178608?v=3","gravatar_id":"","url":"https://api.github.com/users/thejunto","html_url":"https://github.com/thejunto","followers_url":"https://api.github.com/users/thejunto/followers","following_url":"https://api.github.com/users/thejunto/following{/other_user}","gists_url":"https://api.github.com/users/thejunto/gists{/gist_id}","starred_url":"https://api.github.com/users/thejunto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejunto/subscriptions","organizations_url":"https://api.github.com/users/thejunto/orgs","repos_url":"https://api.github.com/users/thejunto/repos","events_url":"https://api.github.com/users/thejunto/events{/privacy}","received_events_url":"https://api.github.com/users/thejunto/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thejunto/meta-notes","description":"Meta notes, a blog for independent learners.","fork":true,"url":"https://api.github.com/repos/thejunto/meta-notes","forks_url":"https://api.github.com/repos/thejunto/meta-notes/forks","keys_url":"https://api.github.com/repos/thejunto/meta-notes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thejunto/meta-notes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thejunto/meta-notes/teams","hooks_url":"https://api.github.com/repos/thejunto/meta-notes/hooks","issue_events_url":"https://api.github.com/repos/thejunto/meta-notes/issues/events{/number}","events_url":"https://api.github.com/repos/thejunto/meta-notes/events","assignees_url":"https://api.github.com/repos/thejunto/meta-notes/assignees{/user}","branches_url":"https://api.github.com/repos/thejunto/meta-notes/branches{/branch}","tags_url":"https://api.github.com/repos/thejunto/meta-notes/tags","blobs_url":"https://api.github.com/repos/thejunto/meta-notes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thejunto/meta-notes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thejunto/meta-notes/git/refs{/sha}","trees_url":"https://api.github.com/repos/thejunto/meta-notes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thejunto/meta-notes/statuses/{sha}","languages_url":"https://api.github.com/repos/thejunto/meta-notes/languages","stargazers_url":"https://api.github.com/repos/thejunto/meta-notes/stargazers","contributors_url":"https://api.github.com/repos/thejunto/meta-notes/contributors","subscribers_url":"https://api.github.com/repos/thejunto/meta-notes/subscribers","subscription_url":"https://api.github.com/repos/thejunto/meta-notes/subscription","commits_url":"https://api.github.com/repos/thejunto/meta-notes/commits{/sha}","git_commits_url":"https://api.github.com/repos/thejunto/meta-notes/git/commits{/sha}","comments_url":"https://api.github.com/repos/thejunto/meta-notes/comments{/number}","issue_comment_url":"https://api.github.com/repos/thejunto/meta-notes/issues/comments{/number}","contents_url":"https://api.github.com/repos/thejunto/meta-notes/contents/{+path}","compare_url":"https://api.github.com/repos/thejunto/meta-notes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thejunto/meta-notes/merges","archive_url":"https://api.github.com/repos/thejunto/meta-notes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thejunto/meta-notes/downloads","issues_url":"https://api.github.com/repos/thejunto/meta-notes/issues{/number}","pulls_url":"https://api.github.com/repos/thejunto/meta-notes/pulls{/number}","milestones_url":"https://api.github.com/repos/thejunto/meta-notes/milestones{/number}","notifications_url":"https://api.github.com/repos/thejunto/meta-notes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thejunto/meta-notes/labels{/name}","releases_url":"https://api.github.com/repos/thejunto/meta-notes/releases{/id}","created_at":"2015-04-23T14:23:21Z","updated_at":"2015-04-27T20:03:11Z","pushed_at":"2015-04-27T20:22:32Z","git_url":"git://github.com/thejunto/meta-notes.git","ssh_url":"git@github.com:thejunto/meta-notes.git","clone_url":"https://github.com/thejunto/meta-notes.git","svn_url":"https://github.com/thejunto/meta-notes","homepage":"http://metanot.es","size":1387,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/thejunto/meta-notes/pulls/2"},"html":{"href":"https://github.com/thejunto/meta-notes/pull/2"},"issue":{"href":"https://api.github.com/repos/thejunto/meta-notes/issues/2"},"comments":{"href":"https://api.github.com/repos/thejunto/meta-notes/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/thejunto/meta-notes/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/thejunto/meta-notes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thejunto/meta-notes/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/thejunto/meta-notes/statuses/9da599767a6af2df6beeb41941ee15fb446a4710"}}}}