{"action":"created","issue":{"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4884","repository_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh","labels_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4884/labels{/name}","comments_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4884/comments","events_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4884/events","html_url":"https://github.com/robbyrussell/oh-my-zsh/pull/4884","id":136774689,"node_id":"MDExOlB1bGxSZXF1ZXN0NjA4ODI0MTk=","number":4884,"title":"add gc- alias for git checkout -","user":{"login":"mb-dev","id":807807,"node_id":"MDQ6VXNlcjgwNzgwNw==","avatar_url":"https://avatars1.githubusercontent.com/u/807807?v=4","gravatar_id":"","url":"https://api.github.com/users/mb-dev","html_url":"https://github.com/mb-dev","followers_url":"https://api.github.com/users/mb-dev/followers","following_url":"https://api.github.com/users/mb-dev/following{/other_user}","gists_url":"https://api.github.com/users/mb-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/mb-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mb-dev/subscriptions","organizations_url":"https://api.github.com/users/mb-dev/orgs","repos_url":"https://api.github.com/users/mb-dev/repos","events_url":"https://api.github.com/users/mb-dev/events{/privacy}","received_events_url":"https://api.github.com/users/mb-dev/received_events","type":"User","site_admin":false},"labels":[{"id":298381154,"node_id":"MDU6TGFiZWwyOTgzODExNTQ=","url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/labels/alias","name":"alias","color":"0052cc","default":false},{"id":298380806,"node_id":"MDU6TGFiZWwyOTgzODA4MDY=","url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/labels/new","name":"new","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-02-26T18:23:20Z","updated_at":"2018-09-12T14:07:59Z","closed_at":"2018-09-12T14:07:59Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/pulls/4884","html_url":"https://github.com/robbyrussell/oh-my-zsh/pull/4884","diff_url":"https://github.com/robbyrussell/oh-my-zsh/pull/4884.diff","patch_url":"https://github.com/robbyrussell/oh-my-zsh/pull/4884.patch"},"body":"git checkout - returns to the previous branch. I added an alias gc-. I was also considering gco-, but there are some checkout aliases without o, such as gcb.\n\nExampe:\n\n```\n> git checkout -b new-branch\nSwitched to new branch 'new-branch'\n> git checkout -\nSwitched to branch 'master'\n> gc-\nSwitched to branch 'new-branch'\n```\n"},"comment":{"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/comments/420661759","html_url":"https://github.com/robbyrussell/oh-my-zsh/pull/4884#issuecomment-420661759","issue_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4884","id":420661759,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDY2MTc1OQ==","user":{"login":"mcornella","id":1441704,"node_id":"MDQ6VXNlcjE0NDE3MDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1441704?v=4","gravatar_id":"","url":"https://api.github.com/users/mcornella","html_url":"https://github.com/mcornella","followers_url":"https://api.github.com/users/mcornella/followers","following_url":"https://api.github.com/users/mcornella/following{/other_user}","gists_url":"https://api.github.com/users/mcornella/gists{/gist_id}","starred_url":"https://api.github.com/users/mcornella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcornella/subscriptions","organizations_url":"https://api.github.com/users/mcornella/orgs","repos_url":"https://api.github.com/users/mcornella/repos","events_url":"https://api.github.com/users/mcornella/events{/privacy}","received_events_url":"https://api.github.com/users/mcornella/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T14:07:59Z","updated_at":"2018-09-12T14:07:59Z","author_association":"COLLABORATOR","body":"Starting the alias with `gc-` would confuse it with `git commit` which is `gc`; it should be `gco-`. That said, it wouldn't save enough characters to be useful; `gco -` is right there on the keyboard."}}
{"actor":{"display_login":"mcornella"}}