{"action":"opened","number":190,"pull_request":{"url":"https://api.github.com/repos/jlord/git-it/pulls/190","id":42424958,"html_url":"https://github.com/jlord/git-it/pull/190","diff_url":"https://github.com/jlord/git-it/pull/190.diff","patch_url":"https://github.com/jlord/git-it/pull/190.patch","issue_url":"https://api.github.com/repos/jlord/git-it/issues/190","number":190,"state":"open","locked":false,"title":"Handling either *.name or *.username in gitconfig","user":{"login":"hicksca","id":3722310,"avatar_url":"https://avatars.githubusercontent.com/u/3722310?v=3","gravatar_id":"","url":"https://api.github.com/users/hicksca","html_url":"https://github.com/hicksca","followers_url":"https://api.github.com/users/hicksca/followers","following_url":"https://api.github.com/users/hicksca/following{/other_user}","gists_url":"https://api.github.com/users/hicksca/gists{/gist_id}","starred_url":"https://api.github.com/users/hicksca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hicksca/subscriptions","organizations_url":"https://api.github.com/users/hicksca/orgs","repos_url":"https://api.github.com/users/hicksca/repos","events_url":"https://api.github.com/users/hicksca/events{/privacy}","received_events_url":"https://api.github.com/users/hicksca/received_events","type":"User","site_admin":false},"body":"There might be a better way of handling this or even just switching to using `git config user.name` rather then `user.username` might help avoid trouble for users who have already setup git using official [git][1] or [github][2] documentation. Both of which seem to recommend `user.name` over `user.username`.  If there is some reason behind `user.username` being the better option, I'd love to learn more about the topic.\r\n\r\nWhat got me to digging was I ran into the issue myself and started looking at the git docs and others .gitconfig files. The only thing I'm not 100% sure about is rather this would be a no go on a none POSIX systems. (no windows machine to test on, but works like a charm on OSX and Linux)\r\n\r\n---\r\nThanks and great work on helping newbies level up we appreciate it!\r\n\r\n[1]: http://www.git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup\r\n[2]: https://help.github.com/articles/setting-your-username-in-git/","created_at":"2015-08-14T05:20:16Z","updated_at":"2015-08-14T05:20:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jlord/git-it/pulls/190/commits","review_comments_url":"https://api.github.com/repos/jlord/git-it/pulls/190/comments","review_comment_url":"https://api.github.com/repos/jlord/git-it/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jlord/git-it/issues/190/comments","statuses_url":"https://api.github.com/repos/jlord/git-it/statuses/9a2ec9ea31123463f949fc90845f041c5fb1ac29","head":{"label":"hicksca:patch-1","ref":"patch-1","sha":"9a2ec9ea31123463f949fc90845f041c5fb1ac29","user":{"login":"hicksca","id":3722310,"avatar_url":"https://avatars.githubusercontent.com/u/3722310?v=3","gravatar_id":"","url":"https://api.github.com/users/hicksca","html_url":"https://github.com/hicksca","followers_url":"https://api.github.com/users/hicksca/followers","following_url":"https://api.github.com/users/hicksca/following{/other_user}","gists_url":"https://api.github.com/users/hicksca/gists{/gist_id}","starred_url":"https://api.github.com/users/hicksca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hicksca/subscriptions","organizations_url":"https://api.github.com/users/hicksca/orgs","repos_url":"https://api.github.com/users/hicksca/repos","events_url":"https://api.github.com/users/hicksca/events{/privacy}","received_events_url":"https://api.github.com/users/hicksca/received_events","type":"User","site_admin":false},"repo":{"id":40696291,"name":"git-it","full_name":"hicksca/git-it","owner":{"login":"hicksca","id":3722310,"avatar_url":"https://avatars.githubusercontent.com/u/3722310?v=3","gravatar_id":"","url":"https://api.github.com/users/hicksca","html_url":"https://github.com/hicksca","followers_url":"https://api.github.com/users/hicksca/followers","following_url":"https://api.github.com/users/hicksca/following{/other_user}","gists_url":"https://api.github.com/users/hicksca/gists{/gist_id}","starred_url":"https://api.github.com/users/hicksca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hicksca/subscriptions","organizations_url":"https://api.github.com/users/hicksca/orgs","repos_url":"https://api.github.com/users/hicksca/repos","events_url":"https://api.github.com/users/hicksca/events{/privacy}","received_events_url":"https://api.github.com/users/hicksca/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hicksca/git-it","description":"A workshopper for learning Git and GitHub. The guide →","fork":true,"url":"https://api.github.com/repos/hicksca/git-it","forks_url":"https://api.github.com/repos/hicksca/git-it/forks","keys_url":"https://api.github.com/repos/hicksca/git-it/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hicksca/git-it/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hicksca/git-it/teams","hooks_url":"https://api.github.com/repos/hicksca/git-it/hooks","issue_events_url":"https://api.github.com/repos/hicksca/git-it/issues/events{/number}","events_url":"https://api.github.com/repos/hicksca/git-it/events","assignees_url":"https://api.github.com/repos/hicksca/git-it/assignees{/user}","branches_url":"https://api.github.com/repos/hicksca/git-it/branches{/branch}","tags_url":"https://api.github.com/repos/hicksca/git-it/tags","blobs_url":"https://api.github.com/repos/hicksca/git-it/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hicksca/git-it/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hicksca/git-it/git/refs{/sha}","trees_url":"https://api.github.com/repos/hicksca/git-it/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hicksca/git-it/statuses/{sha}","languages_url":"https://api.github.com/repos/hicksca/git-it/languages","stargazers_url":"https://api.github.com/repos/hicksca/git-it/stargazers","contributors_url":"https://api.github.com/repos/hicksca/git-it/contributors","subscribers_url":"https://api.github.com/repos/hicksca/git-it/subscribers","subscription_url":"https://api.github.com/repos/hicksca/git-it/subscription","commits_url":"https://api.github.com/repos/hicksca/git-it/commits{/sha}","git_commits_url":"https://api.github.com/repos/hicksca/git-it/git/commits{/sha}","comments_url":"https://api.github.com/repos/hicksca/git-it/comments{/number}","issue_comment_url":"https://api.github.com/repos/hicksca/git-it/issues/comments{/number}","contents_url":"https://api.github.com/repos/hicksca/git-it/contents/{+path}","compare_url":"https://api.github.com/repos/hicksca/git-it/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hicksca/git-it/merges","archive_url":"https://api.github.com/repos/hicksca/git-it/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hicksca/git-it/downloads","issues_url":"https://api.github.com/repos/hicksca/git-it/issues{/number}","pulls_url":"https://api.github.com/repos/hicksca/git-it/pulls{/number}","milestones_url":"https://api.github.com/repos/hicksca/git-it/milestones{/number}","notifications_url":"https://api.github.com/repos/hicksca/git-it/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hicksca/git-it/labels{/name}","releases_url":"https://api.github.com/repos/hicksca/git-it/releases{/id}","created_at":"2015-08-14T04:48:48Z","updated_at":"2015-08-14T04:48:49Z","pushed_at":"2015-08-14T05:13:11Z","git_url":"git://github.com/hicksca/git-it.git","ssh_url":"git@github.com:hicksca/git-it.git","clone_url":"https://github.com/hicksca/git-it.git","svn_url":"https://github.com/hicksca/git-it","homepage":"http://jlord.github.io/git-it","size":2393,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jlord:master","ref":"master","sha":"4b000eb3c3605e94aeb4bd836cfb297470946f08","user":{"login":"jlord","id":1305617,"avatar_url":"https://avatars.githubusercontent.com/u/1305617?v=3","gravatar_id":"","url":"https://api.github.com/users/jlord","html_url":"https://github.com/jlord","followers_url":"https://api.github.com/users/jlord/followers","following_url":"https://api.github.com/users/jlord/following{/other_user}","gists_url":"https://api.github.com/users/jlord/gists{/gist_id}","starred_url":"https://api.github.com/users/jlord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlord/subscriptions","organizations_url":"https://api.github.com/users/jlord/orgs","repos_url":"https://api.github.com/users/jlord/repos","events_url":"https://api.github.com/users/jlord/events{/privacy}","received_events_url":"https://api.github.com/users/jlord/received_events","type":"User","site_admin":true},"repo":{"id":15297233,"name":"git-it","full_name":"jlord/git-it","owner":{"login":"jlord","id":1305617,"avatar_url":"https://avatars.githubusercontent.com/u/1305617?v=3","gravatar_id":"","url":"https://api.github.com/users/jlord","html_url":"https://github.com/jlord","followers_url":"https://api.github.com/users/jlord/followers","following_url":"https://api.github.com/users/jlord/following{/other_user}","gists_url":"https://api.github.com/users/jlord/gists{/gist_id}","starred_url":"https://api.github.com/users/jlord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlord/subscriptions","organizations_url":"https://api.github.com/users/jlord/orgs","repos_url":"https://api.github.com/users/jlord/repos","events_url":"https://api.github.com/users/jlord/events{/privacy}","received_events_url":"https://api.github.com/users/jlord/received_events","type":"User","site_admin":true},"private":false,"html_url":"https://github.com/jlord/git-it","description":"A workshopper for learning Git and GitHub. The guide →","fork":false,"url":"https://api.github.com/repos/jlord/git-it","forks_url":"https://api.github.com/repos/jlord/git-it/forks","keys_url":"https://api.github.com/repos/jlord/git-it/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlord/git-it/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlord/git-it/teams","hooks_url":"https://api.github.com/repos/jlord/git-it/hooks","issue_events_url":"https://api.github.com/repos/jlord/git-it/issues/events{/number}","events_url":"https://api.github.com/repos/jlord/git-it/events","assignees_url":"https://api.github.com/repos/jlord/git-it/assignees{/user}","branches_url":"https://api.github.com/repos/jlord/git-it/branches{/branch}","tags_url":"https://api.github.com/repos/jlord/git-it/tags","blobs_url":"https://api.github.com/repos/jlord/git-it/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlord/git-it/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlord/git-it/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlord/git-it/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlord/git-it/statuses/{sha}","languages_url":"https://api.github.com/repos/jlord/git-it/languages","stargazers_url":"https://api.github.com/repos/jlord/git-it/stargazers","contributors_url":"https://api.github.com/repos/jlord/git-it/contributors","subscribers_url":"https://api.github.com/repos/jlord/git-it/subscribers","subscription_url":"https://api.github.com/repos/jlord/git-it/subscription","commits_url":"https://api.github.com/repos/jlord/git-it/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlord/git-it/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlord/git-it/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlord/git-it/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlord/git-it/contents/{+path}","compare_url":"https://api.github.com/repos/jlord/git-it/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlord/git-it/merges","archive_url":"https://api.github.com/repos/jlord/git-it/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlord/git-it/downloads","issues_url":"https://api.github.com/repos/jlord/git-it/issues{/number}","pulls_url":"https://api.github.com/repos/jlord/git-it/pulls{/number}","milestones_url":"https://api.github.com/repos/jlord/git-it/milestones{/number}","notifications_url":"https://api.github.com/repos/jlord/git-it/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlord/git-it/labels{/name}","releases_url":"https://api.github.com/repos/jlord/git-it/releases{/id}","created_at":"2013-12-18T23:50:01Z","updated_at":"2015-08-11T12:37:10Z","pushed_at":"2015-07-20T17:44:15Z","git_url":"git://github.com/jlord/git-it.git","ssh_url":"git@github.com:jlord/git-it.git","clone_url":"https://github.com/jlord/git-it.git","svn_url":"https://github.com/jlord/git-it","homepage":"http://jlord.github.io/git-it","size":3540,"stargazers_count":918,"watchers_count":918,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":255,"mirror_url":null,"open_issues_count":28,"forks":255,"open_issues":28,"watchers":918,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jlord/git-it/pulls/190"},"html":{"href":"https://github.com/jlord/git-it/pull/190"},"issue":{"href":"https://api.github.com/repos/jlord/git-it/issues/190"},"comments":{"href":"https://api.github.com/repos/jlord/git-it/issues/190/comments"},"review_comments":{"href":"https://api.github.com/repos/jlord/git-it/pulls/190/comments"},"review_comment":{"href":"https://api.github.com/repos/jlord/git-it/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jlord/git-it/pulls/190/commits"},"statuses":{"href":"https://api.github.com/repos/jlord/git-it/statuses/9a2ec9ea31123463f949fc90845f041c5fb1ac29"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}