{"action":"created","comment":{"url":"https://api.github.com/repos/lhcb/analysis-essentials/pulls/comments/43227241","id":43227241,"diff_hunk":"@@ -0,0 +1,139 @@\n+# Git\n+As stated on the project's official website [git-scm.com](https://git-scm.com),\n+\n+> Git is a free and open source distributed version control system designed to\n+> handle everything from small to very large projects with speed and\n+> efficiency.\n+\n+Great so this means that here we have a tool that we can use free of charge\n+(even better, we can look at and modify the source code) which allows us to\n+version our projects. Versioning in turn means that we can keep a history of\n+changes made to the project in question. Additionally it is distributed which\n+for practical purposes means that me keeping a history does not depend on the\n+benevolence (or even existence) of some remote server. The following tutorial is\n+intended to\n+\n+ 1. Convince you of Git's superiority\n+ 2. Teach you to use Git locally to version changes on a local project\n+ 3. Teach you to use Git to collaborate with others on remote projects\n+\n+We hope that at the end of the day (or at least after the first time Git has\n+saved you from losing your progress) you will accept that it is _the best and\n+only way_ to version anything from your diary to your future company's software.\n+\n+\n+## Motivation\n+Does the situation depicted in [this PhD\n+comic](http://www.phdcomics.com/comics/archive.php?comicid=1531) look anything\n+familiar to you? What the student in this comic clearly needs (apart from some\n+LaTeX lessons) is a version control system! Such a system keeps a history of\n+project in a very non-intrusive way. The user only sees the current state of the\n+project in their filesystem but all changes are versioned such that previous\n+version are easily accessible. This reduces the need for ridiculous\n+`_version5.23_final` filename appendices.\n+\n+Another common challenges that every physics student has to face in their time\n+at university is collaborative work with fellow students. Let's take a lab\n+course for example: You gather data, analyse it, and write a report about your\n+findings. There's a lot to be versioned: your data (although it will not change\n+after it's been recorded), your analysis programs, and the LaTeX source of your\n+report.\n+\n+ * Superiority over exchanging files via email\n+ * Superiority over exchanging files via Dropbox\n+ * Two sides: Collaboration and backup/history","path":"20-git.md","position":44,"original_position":44,"commit_id":"aaa9465901d072482d9f1a1df82cab5e5e9fa5bb","original_commit_id":"aaa9465901d072482d9f1a1df82cab5e5e9fa5bb","user":{"login":"alexpearce","id":540853,"avatar_url":"https://avatars.githubusercontent.com/u/540853?v=3","gravatar_id":"","url":"https://api.github.com/users/alexpearce","html_url":"https://github.com/alexpearce","followers_url":"https://api.github.com/users/alexpearce/followers","following_url":"https://api.github.com/users/alexpearce/following{/other_user}","gists_url":"https://api.github.com/users/alexpearce/gists{/gist_id}","starred_url":"https://api.github.com/users/alexpearce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexpearce/subscriptions","organizations_url":"https://api.github.com/users/alexpearce/orgs","repos_url":"https://api.github.com/users/alexpearce/repos","events_url":"https://api.github.com/users/alexpearce/events{/privacy}","received_events_url":"https://api.github.com/users/alexpearce/received_events","type":"User","site_admin":false},"body":"These bullet points seem a little random here.","created_at":"2015-10-28T08:24:33Z","updated_at":"2015-10-28T08:24:33Z","html_url":"https://github.com/lhcb/analysis-essentials/pull/4#discussion_r43227241","pull_request_url":"https://api.github.com/repos/lhcb/analysis-essentials/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/lhcb/analysis-essentials/pulls/comments/43227241"},"html":{"href":"https://github.com/lhcb/analysis-essentials/pull/4#discussion_r43227241"},"pull_request":{"href":"https://api.github.com/repos/lhcb/analysis-essentials/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/lhcb/analysis-essentials/pulls/4","id":48975894,"html_url":"https://github.com/lhcb/analysis-essentials/pull/4","diff_url":"https://github.com/lhcb/analysis-essentials/pull/4.diff","patch_url":"https://github.com/lhcb/analysis-essentials/pull/4.patch","issue_url":"https://api.github.com/repos/lhcb/analysis-essentials/issues/4","number":4,"state":"open","locked":false,"title":"Small fixes and start writing about Git","user":{"login":"kdungs","id":891877,"avatar_url":"https://avatars.githubusercontent.com/u/891877?v=3","gravatar_id":"","url":"https://api.github.com/users/kdungs","html_url":"https://github.com/kdungs","followers_url":"https://api.github.com/users/kdungs/followers","following_url":"https://api.github.com/users/kdungs/following{/other_user}","gists_url":"https://api.github.com/users/kdungs/gists{/gist_id}","starred_url":"https://api.github.com/users/kdungs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdungs/subscriptions","organizations_url":"https://api.github.com/users/kdungs/orgs","repos_url":"https://api.github.com/users/kdungs/repos","events_url":"https://api.github.com/users/kdungs/events{/privacy}","received_events_url":"https://api.github.com/users/kdungs/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-28T08:21:46Z","updated_at":"2015-10-28T08:24:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48eff74151f1e7f30fcbb6abd58d66675d96bc61","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lhcb/analysis-essentials/pulls/4/commits","review_comments_url":"https://api.github.com/repos/lhcb/analysis-essentials/pulls/4/comments","review_comment_url":"https://api.github.com/repos/lhcb/analysis-essentials/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lhcb/analysis-essentials/issues/4/comments","statuses_url":"https://api.github.com/repos/lhcb/analysis-essentials/statuses/aaa9465901d072482d9f1a1df82cab5e5e9fa5bb","head":{"label":"kdungs:master","ref":"master","sha":"aaa9465901d072482d9f1a1df82cab5e5e9fa5bb","user":{"login":"kdungs","id":891877,"avatar_url":"https://avatars.githubusercontent.com/u/891877?v=3","gravatar_id":"","url":"https://api.github.com/users/kdungs","html_url":"https://github.com/kdungs","followers_url":"https://api.github.com/users/kdungs/followers","following_url":"https://api.github.com/users/kdungs/following{/other_user}","gists_url":"https://api.github.com/users/kdungs/gists{/gist_id}","starred_url":"https://api.github.com/users/kdungs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdungs/subscriptions","organizations_url":"https://api.github.com/users/kdungs/orgs","repos_url":"https://api.github.com/users/kdungs/repos","events_url":"https://api.github.com/users/kdungs/events{/privacy}","received_events_url":"https://api.github.com/users/kdungs/received_events","type":"User","site_admin":false},"repo":{"id":44536745,"name":"analysis-essentials","full_name":"kdungs/analysis-essentials","owner":{"login":"kdungs","id":891877,"avatar_url":"https://avatars.githubusercontent.com/u/891877?v=3","gravatar_id":"","url":"https://api.github.com/users/kdungs","html_url":"https://github.com/kdungs","followers_url":"https://api.github.com/users/kdungs/followers","following_url":"https://api.github.com/users/kdungs/following{/other_user}","gists_url":"https://api.github.com/users/kdungs/gists{/gist_id}","starred_url":"https://api.github.com/users/kdungs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdungs/subscriptions","organizations_url":"https://api.github.com/users/kdungs/orgs","repos_url":"https://api.github.com/users/kdungs/repos","events_url":"https://api.github.com/users/kdungs/events{/privacy}","received_events_url":"https://api.github.com/users/kdungs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kdungs/analysis-essentials","description":"Computing essentials for LHCb analysts","fork":true,"url":"https://api.github.com/repos/kdungs/analysis-essentials","forks_url":"https://api.github.com/repos/kdungs/analysis-essentials/forks","keys_url":"https://api.github.com/repos/kdungs/analysis-essentials/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kdungs/analysis-essentials/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kdungs/analysis-essentials/teams","hooks_url":"https://api.github.com/repos/kdungs/analysis-essentials/hooks","issue_events_url":"https://api.github.com/repos/kdungs/analysis-essentials/issues/events{/number}","events_url":"https://api.github.com/repos/kdungs/analysis-essentials/events","assignees_url":"https://api.github.com/repos/kdungs/analysis-essentials/assignees{/user}","branches_url":"https://api.github.com/repos/kdungs/analysis-essentials/branches{/branch}","tags_url":"https://api.github.com/repos/kdungs/analysis-essentials/tags","blobs_url":"https://api.github.com/repos/kdungs/analysis-essentials/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kdungs/analysis-essentials/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kdungs/analysis-essentials/git/refs{/sha}","trees_url":"https://api.github.com/repos/kdungs/analysis-essentials/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kdungs/analysis-essentials/statuses/{sha}","languages_url":"https://api.github.com/repos/kdungs/analysis-essentials/languages","stargazers_url":"https://api.github.com/repos/kdungs/analysis-essentials/stargazers","contributors_url":"https://api.github.com/repos/kdungs/analysis-essentials/contributors","subscribers_url":"https://api.github.com/repos/kdungs/analysis-essentials/subscribers","subscription_url":"https://api.github.com/repos/kdungs/analysis-essentials/subscription","commits_url":"https://api.github.com/repos/kdungs/analysis-essentials/commits{/sha}","git_commits_url":"https://api.github.com/repos/kdungs/analysis-essentials/git/commits{/sha}","comments_url":"https://api.github.com/repos/kdungs/analysis-essentials/comments{/number}","issue_comment_url":"https://api.github.com/repos/kdungs/analysis-essentials/issues/comments{/number}","contents_url":"https://api.github.com/repos/kdungs/analysis-essentials/contents/{+path}","compare_url":"https://api.github.com/repos/kdungs/analysis-essentials/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kdungs/analysis-essentials/merges","archive_url":"https://api.github.com/repos/kdungs/analysis-essentials/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kdungs/analysis-essentials/downloads","issues_url":"https://api.github.com/repos/kdungs/analysis-essentials/issues{/number}","pulls_url":"https://api.github.com/repos/kdungs/analysis-essentials/pulls{/number}","milestones_url":"https://api.github.com/repos/kdungs/analysis-essentials/milestones{/number}","notifications_url":"https://api.github.com/repos/kdungs/analysis-essentials/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kdungs/analysis-essentials/labels{/name}","releases_url":"https://api.github.com/repos/kdungs/analysis-essentials/releases{/id}","created_at":"2015-10-19T13:29:24Z","updated_at":"2015-10-28T08:21:06Z","pushed_at":"2015-10-28T08:21:05Z","git_url":"git://github.com/kdungs/analysis-essentials.git","ssh_url":"git@github.com:kdungs/analysis-essentials.git","clone_url":"https://github.com/kdungs/analysis-essentials.git","svn_url":"https://github.com/kdungs/analysis-essentials","homepage":null,"size":85,"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":"lhcb:master","ref":"master","sha":"2b3c2fc2d9c48f63654e4231ca4016048efd5eba","user":{"login":"lhcb","id":924952,"avatar_url":"https://avatars.githubusercontent.com/u/924952?v=3","gravatar_id":"","url":"https://api.github.com/users/lhcb","html_url":"https://github.com/lhcb","followers_url":"https://api.github.com/users/lhcb/followers","following_url":"https://api.github.com/users/lhcb/following{/other_user}","gists_url":"https://api.github.com/users/lhcb/gists{/gist_id}","starred_url":"https://api.github.com/users/lhcb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhcb/subscriptions","organizations_url":"https://api.github.com/users/lhcb/orgs","repos_url":"https://api.github.com/users/lhcb/repos","events_url":"https://api.github.com/users/lhcb/events{/privacy}","received_events_url":"https://api.github.com/users/lhcb/received_events","type":"Organization","site_admin":false},"repo":{"id":44307714,"name":"analysis-essentials","full_name":"lhcb/analysis-essentials","owner":{"login":"lhcb","id":924952,"avatar_url":"https://avatars.githubusercontent.com/u/924952?v=3","gravatar_id":"","url":"https://api.github.com/users/lhcb","html_url":"https://github.com/lhcb","followers_url":"https://api.github.com/users/lhcb/followers","following_url":"https://api.github.com/users/lhcb/following{/other_user}","gists_url":"https://api.github.com/users/lhcb/gists{/gist_id}","starred_url":"https://api.github.com/users/lhcb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhcb/subscriptions","organizations_url":"https://api.github.com/users/lhcb/orgs","repos_url":"https://api.github.com/users/lhcb/repos","events_url":"https://api.github.com/users/lhcb/events{/privacy}","received_events_url":"https://api.github.com/users/lhcb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lhcb/analysis-essentials","description":"Computing essentials for LHCb analysts","fork":false,"url":"https://api.github.com/repos/lhcb/analysis-essentials","forks_url":"https://api.github.com/repos/lhcb/analysis-essentials/forks","keys_url":"https://api.github.com/repos/lhcb/analysis-essentials/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lhcb/analysis-essentials/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lhcb/analysis-essentials/teams","hooks_url":"https://api.github.com/repos/lhcb/analysis-essentials/hooks","issue_events_url":"https://api.github.com/repos/lhcb/analysis-essentials/issues/events{/number}","events_url":"https://api.github.com/repos/lhcb/analysis-essentials/events","assignees_url":"https://api.github.com/repos/lhcb/analysis-essentials/assignees{/user}","branches_url":"https://api.github.com/repos/lhcb/analysis-essentials/branches{/branch}","tags_url":"https://api.github.com/repos/lhcb/analysis-essentials/tags","blobs_url":"https://api.github.com/repos/lhcb/analysis-essentials/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lhcb/analysis-essentials/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lhcb/analysis-essentials/git/refs{/sha}","trees_url":"https://api.github.com/repos/lhcb/analysis-essentials/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lhcb/analysis-essentials/statuses/{sha}","languages_url":"https://api.github.com/repos/lhcb/analysis-essentials/languages","stargazers_url":"https://api.github.com/repos/lhcb/analysis-essentials/stargazers","contributors_url":"https://api.github.com/repos/lhcb/analysis-essentials/contributors","subscribers_url":"https://api.github.com/repos/lhcb/analysis-essentials/subscribers","subscription_url":"https://api.github.com/repos/lhcb/analysis-essentials/subscription","commits_url":"https://api.github.com/repos/lhcb/analysis-essentials/commits{/sha}","git_commits_url":"https://api.github.com/repos/lhcb/analysis-essentials/git/commits{/sha}","comments_url":"https://api.github.com/repos/lhcb/analysis-essentials/comments{/number}","issue_comment_url":"https://api.github.com/repos/lhcb/analysis-essentials/issues/comments{/number}","contents_url":"https://api.github.com/repos/lhcb/analysis-essentials/contents/{+path}","compare_url":"https://api.github.com/repos/lhcb/analysis-essentials/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lhcb/analysis-essentials/merges","archive_url":"https://api.github.com/repos/lhcb/analysis-essentials/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lhcb/analysis-essentials/downloads","issues_url":"https://api.github.com/repos/lhcb/analysis-essentials/issues{/number}","pulls_url":"https://api.github.com/repos/lhcb/analysis-essentials/pulls{/number}","milestones_url":"https://api.github.com/repos/lhcb/analysis-essentials/milestones{/number}","notifications_url":"https://api.github.com/repos/lhcb/analysis-essentials/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lhcb/analysis-essentials/labels{/name}","releases_url":"https://api.github.com/repos/lhcb/analysis-essentials/releases{/id}","created_at":"2015-10-15T09:33:06Z","updated_at":"2015-10-28T07:34:33Z","pushed_at":"2015-10-28T08:21:46Z","git_url":"git://github.com/lhcb/analysis-essentials.git","ssh_url":"git@github.com:lhcb/analysis-essentials.git","clone_url":"https://github.com/lhcb/analysis-essentials.git","svn_url":"https://github.com/lhcb/analysis-essentials","homepage":null,"size":316,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lhcb/analysis-essentials/pulls/4"},"html":{"href":"https://github.com/lhcb/analysis-essentials/pull/4"},"issue":{"href":"https://api.github.com/repos/lhcb/analysis-essentials/issues/4"},"comments":{"href":"https://api.github.com/repos/lhcb/analysis-essentials/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/lhcb/analysis-essentials/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/lhcb/analysis-essentials/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lhcb/analysis-essentials/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/lhcb/analysis-essentials/statuses/aaa9465901d072482d9f1a1df82cab5e5e9fa5bb"}}}}