{"action":"created","comment":{"url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/pulls/comments/30999413","id":30999413,"diff_hunk":"@@ -356,6 +357,62 @@ $ git rebase --continue\n ```\n **[⬆ back to top](#overview)**\n \n+## Example Workflow\n+\n+Now that you've seen all the bits and pieces, it would probably be helpful to see what the workflow with all these different commands looks like.\n+\n+This is the typical situation.  You're working on a project which is being tracked by git.  You want to begin adding a feature or fixing a bug.\n+Begin by checking out a new branch with a descriptive branch name.  For demo purposes, the branch name will be `fix-readme-grammar`.\n+```\n+$ git checkout -b fix-readme-grammar\n+```\n+\n+after making your changes, review your changes by running\n+```\n+$ git status\n+```\n+and usually\n+```\n+$ git diff\n+```\n+This will allow you to do a last minute review of your changes before deciding to make a new commit\n+\n+Once you're satisifed with what you've changed, add the files to the staging area","path":"README.md","position":32,"original_position":32,"commit_id":"66bfa350621ceadae27ecaacd8b5d4eed301361e","original_commit_id":"66bfa350621ceadae27ecaacd8b5d4eed301361e","user":{"login":"sh6khan","id":6743784,"avatar_url":"https://avatars.githubusercontent.com/u/6743784?v=3","gravatar_id":"","url":"https://api.github.com/users/sh6khan","html_url":"https://github.com/sh6khan","followers_url":"https://api.github.com/users/sh6khan/followers","following_url":"https://api.github.com/users/sh6khan/following{/other_user}","gists_url":"https://api.github.com/users/sh6khan/gists{/gist_id}","starred_url":"https://api.github.com/users/sh6khan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh6khan/subscriptions","organizations_url":"https://api.github.com/users/sh6khan/orgs","repos_url":"https://api.github.com/users/sh6khan/repos","events_url":"https://api.github.com/users/sh6khan/events{/privacy}","received_events_url":"https://api.github.com/users/sh6khan/received_events","type":"User","site_admin":false},"body":"satisfied\r\n\r\nalso remove the `with what you've changed`, its redundant ","created_at":"2015-05-26T01:08:18Z","updated_at":"2015-05-26T01:08:18Z","html_url":"https://github.com/sh6khan/git-cheat-sheet/pull/8#discussion_r30999413","pull_request_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/sh6khan/git-cheat-sheet/pulls/comments/30999413"},"html":{"href":"https://github.com/sh6khan/git-cheat-sheet/pull/8#discussion_r30999413"},"pull_request":{"href":"https://api.github.com/repos/sh6khan/git-cheat-sheet/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/pulls/8","id":36161552,"html_url":"https://github.com/sh6khan/git-cheat-sheet/pull/8","diff_url":"https://github.com/sh6khan/git-cheat-sheet/pull/8.diff","patch_url":"https://github.com/sh6khan/git-cheat-sheet/pull/8.patch","issue_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/issues/8","number":8,"state":"open","locked":false,"title":"added example workflow section","user":{"login":"rperryng","id":6402435,"avatar_url":"https://avatars.githubusercontent.com/u/6402435?v=3","gravatar_id":"","url":"https://api.github.com/users/rperryng","html_url":"https://github.com/rperryng","followers_url":"https://api.github.com/users/rperryng/followers","following_url":"https://api.github.com/users/rperryng/following{/other_user}","gists_url":"https://api.github.com/users/rperryng/gists{/gist_id}","starred_url":"https://api.github.com/users/rperryng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rperryng/subscriptions","organizations_url":"https://api.github.com/users/rperryng/orgs","repos_url":"https://api.github.com/users/rperryng/repos","events_url":"https://api.github.com/users/rperryng/events{/privacy}","received_events_url":"https://api.github.com/users/rperryng/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-25T23:35:43Z","updated_at":"2015-05-26T01:08:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16fb087ac061140af2276342d4b6030add71a577","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/pulls/8/commits","review_comments_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/pulls/8/comments","review_comment_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/issues/8/comments","statuses_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/statuses/66bfa350621ceadae27ecaacd8b5d4eed301361e","head":{"label":"sh6khan:example-workflow","ref":"example-workflow","sha":"66bfa350621ceadae27ecaacd8b5d4eed301361e","user":{"login":"sh6khan","id":6743784,"avatar_url":"https://avatars.githubusercontent.com/u/6743784?v=3","gravatar_id":"","url":"https://api.github.com/users/sh6khan","html_url":"https://github.com/sh6khan","followers_url":"https://api.github.com/users/sh6khan/followers","following_url":"https://api.github.com/users/sh6khan/following{/other_user}","gists_url":"https://api.github.com/users/sh6khan/gists{/gist_id}","starred_url":"https://api.github.com/users/sh6khan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh6khan/subscriptions","organizations_url":"https://api.github.com/users/sh6khan/orgs","repos_url":"https://api.github.com/users/sh6khan/repos","events_url":"https://api.github.com/users/sh6khan/events{/privacy}","received_events_url":"https://api.github.com/users/sh6khan/received_events","type":"User","site_admin":false},"repo":{"id":33352159,"name":"git-cheat-sheet","full_name":"sh6khan/git-cheat-sheet","owner":{"login":"sh6khan","id":6743784,"avatar_url":"https://avatars.githubusercontent.com/u/6743784?v=3","gravatar_id":"","url":"https://api.github.com/users/sh6khan","html_url":"https://github.com/sh6khan","followers_url":"https://api.github.com/users/sh6khan/followers","following_url":"https://api.github.com/users/sh6khan/following{/other_user}","gists_url":"https://api.github.com/users/sh6khan/gists{/gist_id}","starred_url":"https://api.github.com/users/sh6khan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh6khan/subscriptions","organizations_url":"https://api.github.com/users/sh6khan/orgs","repos_url":"https://api.github.com/users/sh6khan/repos","events_url":"https://api.github.com/users/sh6khan/events{/privacy}","received_events_url":"https://api.github.com/users/sh6khan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sh6khan/git-cheat-sheet","description":"This is my personal git cheat sheet. This is not a deep dive into how git works, just some of the simple stuff","fork":false,"url":"https://api.github.com/repos/sh6khan/git-cheat-sheet","forks_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/forks","keys_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/teams","hooks_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/hooks","issue_events_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/issues/events{/number}","events_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/events","assignees_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/assignees{/user}","branches_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/branches{/branch}","tags_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/tags","blobs_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/git/refs{/sha}","trees_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/statuses/{sha}","languages_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/languages","stargazers_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/stargazers","contributors_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/contributors","subscribers_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/subscribers","subscription_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/subscription","commits_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/commits{/sha}","git_commits_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/git/commits{/sha}","comments_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/comments{/number}","issue_comment_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/issues/comments{/number}","contents_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/contents/{+path}","compare_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/merges","archive_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/downloads","issues_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/issues{/number}","pulls_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/pulls{/number}","milestones_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/milestones{/number}","notifications_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/labels{/name}","releases_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/releases{/id}","created_at":"2015-04-03T07:24:29Z","updated_at":"2015-05-25T03:14:51Z","pushed_at":"2015-05-26T01:04:49Z","git_url":"git://github.com/sh6khan/git-cheat-sheet.git","ssh_url":"git@github.com:sh6khan/git-cheat-sheet.git","clone_url":"https://github.com/sh6khan/git-cheat-sheet.git","svn_url":"https://github.com/sh6khan/git-cheat-sheet","homepage":null,"size":188,"stargazers_count":9,"watchers_count":9,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":9,"default_branch":"master"}},"base":{"label":"sh6khan:master","ref":"master","sha":"1d151def0810a20a8016ab1f2d85f21359bf1bc9","user":{"login":"sh6khan","id":6743784,"avatar_url":"https://avatars.githubusercontent.com/u/6743784?v=3","gravatar_id":"","url":"https://api.github.com/users/sh6khan","html_url":"https://github.com/sh6khan","followers_url":"https://api.github.com/users/sh6khan/followers","following_url":"https://api.github.com/users/sh6khan/following{/other_user}","gists_url":"https://api.github.com/users/sh6khan/gists{/gist_id}","starred_url":"https://api.github.com/users/sh6khan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh6khan/subscriptions","organizations_url":"https://api.github.com/users/sh6khan/orgs","repos_url":"https://api.github.com/users/sh6khan/repos","events_url":"https://api.github.com/users/sh6khan/events{/privacy}","received_events_url":"https://api.github.com/users/sh6khan/received_events","type":"User","site_admin":false},"repo":{"id":33352159,"name":"git-cheat-sheet","full_name":"sh6khan/git-cheat-sheet","owner":{"login":"sh6khan","id":6743784,"avatar_url":"https://avatars.githubusercontent.com/u/6743784?v=3","gravatar_id":"","url":"https://api.github.com/users/sh6khan","html_url":"https://github.com/sh6khan","followers_url":"https://api.github.com/users/sh6khan/followers","following_url":"https://api.github.com/users/sh6khan/following{/other_user}","gists_url":"https://api.github.com/users/sh6khan/gists{/gist_id}","starred_url":"https://api.github.com/users/sh6khan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh6khan/subscriptions","organizations_url":"https://api.github.com/users/sh6khan/orgs","repos_url":"https://api.github.com/users/sh6khan/repos","events_url":"https://api.github.com/users/sh6khan/events{/privacy}","received_events_url":"https://api.github.com/users/sh6khan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sh6khan/git-cheat-sheet","description":"This is my personal git cheat sheet. This is not a deep dive into how git works, just some of the simple stuff","fork":false,"url":"https://api.github.com/repos/sh6khan/git-cheat-sheet","forks_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/forks","keys_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/teams","hooks_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/hooks","issue_events_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/issues/events{/number}","events_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/events","assignees_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/assignees{/user}","branches_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/branches{/branch}","tags_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/tags","blobs_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/git/refs{/sha}","trees_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/statuses/{sha}","languages_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/languages","stargazers_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/stargazers","contributors_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/contributors","subscribers_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/subscribers","subscription_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/subscription","commits_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/commits{/sha}","git_commits_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/git/commits{/sha}","comments_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/comments{/number}","issue_comment_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/issues/comments{/number}","contents_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/contents/{+path}","compare_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/merges","archive_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/downloads","issues_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/issues{/number}","pulls_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/pulls{/number}","milestones_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/milestones{/number}","notifications_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/labels{/name}","releases_url":"https://api.github.com/repos/sh6khan/git-cheat-sheet/releases{/id}","created_at":"2015-04-03T07:24:29Z","updated_at":"2015-05-25T03:14:51Z","pushed_at":"2015-05-26T01:04:49Z","git_url":"git://github.com/sh6khan/git-cheat-sheet.git","ssh_url":"git@github.com:sh6khan/git-cheat-sheet.git","clone_url":"https://github.com/sh6khan/git-cheat-sheet.git","svn_url":"https://github.com/sh6khan/git-cheat-sheet","homepage":null,"size":188,"stargazers_count":9,"watchers_count":9,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sh6khan/git-cheat-sheet/pulls/8"},"html":{"href":"https://github.com/sh6khan/git-cheat-sheet/pull/8"},"issue":{"href":"https://api.github.com/repos/sh6khan/git-cheat-sheet/issues/8"},"comments":{"href":"https://api.github.com/repos/sh6khan/git-cheat-sheet/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/sh6khan/git-cheat-sheet/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/sh6khan/git-cheat-sheet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sh6khan/git-cheat-sheet/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/sh6khan/git-cheat-sheet/statuses/66bfa350621ceadae27ecaacd8b5d4eed301361e"}}}}