{"action":"created","issue":{"url":"https://api.github.com/repos/tedslittlerobot/homeslice/issues/3","labels_url":"https://api.github.com/repos/tedslittlerobot/homeslice/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/tedslittlerobot/homeslice/issues/3/comments","events_url":"https://api.github.com/repos/tedslittlerobot/homeslice/issues/3/events","html_url":"https://github.com/tedslittlerobot/homeslice/issues/3","id":55131896,"number":3,"title":"Command Line Git is too verbose.","user":{"login":"AMRoche","id":2025790,"avatar_url":"https://avatars.githubusercontent.com/u/2025790?v=3","gravatar_id":"","url":"https://api.github.com/users/AMRoche","html_url":"https://github.com/AMRoche","followers_url":"https://api.github.com/users/AMRoche/followers","following_url":"https://api.github.com/users/AMRoche/following{/other_user}","gists_url":"https://api.github.com/users/AMRoche/gists{/gist_id}","starred_url":"https://api.github.com/users/AMRoche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AMRoche/subscriptions","organizations_url":"https://api.github.com/users/AMRoche/orgs","repos_url":"https://api.github.com/users/AMRoche/repos","events_url":"https://api.github.com/users/AMRoche/events{/privacy}","received_events_url":"https://api.github.com/users/AMRoche/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-22T09:33:17Z","updated_at":"2015-01-22T09:54:10Z","closed_at":null,"body":"Not your fault, but here's some fixes for that;\r\n\r\n**Note : **These were written for ZSH, assuming bash will handle them just fine but IDK. YMMV.\r\n```\r\nnewbranch() {\r\n\tif [[ $# -ge 3 ]]; then\r\n\r\n\t\tprint \"Please supply arguments in the following fashion and count;\"\r\n\t\tprint \"newbranch [OPTIONAL branch to pull from] [new branch name]\"\r\n\t\tprint \"defaults branch to develop unless otherwise specified.\"\r\n\r\n\telif [[ $# -eq 2 ]]; then\r\n\r\n\t\tgit checkout \"$1\" && git pull && git checkout -b \"$2\"\r\n\r\n\telif [[ $# -eq 1 ]]; then\r\n\r\n\t\tgit checkout develop && git pull && git checkout -b \"$1\"\r\n\r\n\telif [[ $# -eq 0 ]]; then\r\n\r\n\t\tprint \"Please supply arguments in the following fashion\"\r\n\t\tprint \"newbranch [OPTIONAL branch to pull from] [new branch name]\"\r\n\t\tprint \"defaults branch to develop unless otherwise specified.\"\r\n\r\n\tfi\r\n}\r\n\r\ngitpushorigin() {\r\n\tlocal branch=$(git rev-parse --abbrev-ref HEAD)\r\n\tgit push --set-upstream origin $branch\r\n}\r\n\r\ngitcommitpush() {\r\n\tif [[ $# -ge 2 ]]; then\r\n\t\tprint \"Please supply commit message as one argument.\"\r\n\telif [[ $# -eq 1 ]]; then\r\n\t\tgit commit -m \"$1\" && git push\r\n\telif [[ $# -eq 0 ]]; then\r\n\t\tprint \"Please supply a commit message.\"\r\n\tfi\r\n}\r\n\r\ngitcommitpushorigin() {\r\n\tif [[ $# -ge 2 ]]; then\r\n\t\tprint \"Please supply commit message as one argument.\"\r\n\telif [[ $# -eq 1 ]]; then\r\n\t\tgit commit -m \"$1\"\r\n\t\tlocal branch=$(git rev-parse --abbrev-ref HEAD)\r\n\t\tgit push --set-upstream origin $branch\r\n\telif [[ $# -eq 0 ]]; then\r\n\t\tprint \"Please supply a commit message.\"\r\n\tfi\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/tedslittlerobot/homeslice/issues/comments/70996124","html_url":"https://github.com/tedslittlerobot/homeslice/issues/3#issuecomment-70996124","issue_url":"https://api.github.com/repos/tedslittlerobot/homeslice/issues/3","id":70996124,"user":{"login":"AMRoche","id":2025790,"avatar_url":"https://avatars.githubusercontent.com/u/2025790?v=3","gravatar_id":"","url":"https://api.github.com/users/AMRoche","html_url":"https://github.com/AMRoche","followers_url":"https://api.github.com/users/AMRoche/followers","following_url":"https://api.github.com/users/AMRoche/following{/other_user}","gists_url":"https://api.github.com/users/AMRoche/gists{/gist_id}","starred_url":"https://api.github.com/users/AMRoche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AMRoche/subscriptions","organizations_url":"https://api.github.com/users/AMRoche/orgs","repos_url":"https://api.github.com/users/AMRoche/repos","events_url":"https://api.github.com/users/AMRoche/events{/privacy}","received_events_url":"https://api.github.com/users/AMRoche/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T09:54:10Z","updated_at":"2015-01-22T09:54:10Z","body":"Also this, just as a general helper;\r\n\r\n```\r\nalias bother='sudo $(fc -ln -1)'\r\n```"}}