{"action":"created","issue":{"url":"https://api.github.com/repos/inno-code/simplephp/issues/14","labels_url":"https://api.github.com/repos/inno-code/simplephp/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/inno-code/simplephp/issues/14/comments","events_url":"https://api.github.com/repos/inno-code/simplephp/issues/14/events","html_url":"https://github.com/inno-code/simplephp/issues/14","id":92964826,"number":14,"title":"Git repo rejected my push ","user":{"login":"taono","id":12735167,"avatar_url":"https://avatars.githubusercontent.com/u/12735167?v=3","gravatar_id":"","url":"https://api.github.com/users/taono","html_url":"https://github.com/taono","followers_url":"https://api.github.com/users/taono/followers","following_url":"https://api.github.com/users/taono/following{/other_user}","gists_url":"https://api.github.com/users/taono/gists{/gist_id}","starred_url":"https://api.github.com/users/taono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taono/subscriptions","organizations_url":"https://api.github.com/users/taono/orgs","repos_url":"https://api.github.com/users/taono/repos","events_url":"https://api.github.com/users/taono/events{/privacy}","received_events_url":"https://api.github.com/users/taono/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-04T03:15:00Z","updated_at":"2015-07-04T05:11:16Z","closed_at":null,"body":"## @zoelogic  please take a look at the following message. After trying to create a folder at root directory for inno-code/simplephp, my push got rejected. \r\n\r\nIn Git 2.0, Git will default to the more conservative 'simple'\r\nbehavior, which only pushes the current branch to the corresponding\r\nremote branch that 'git pull' uses to update the current branch.\r\n\r\nSee 'git help config' and search for 'push.default' for further information.\r\n(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode\r\n'current' instead of 'simple' if you sometimes use older versions of Git)\r\n\r\nUsername for 'https://github.com': git config --global push.default matching \r\nPassword for 'https://git config --global push.default matching@github.com': \r\nremote: Invalid username or password.\r\nfatal: Authentication failed for 'https://github.com/taono/simplephp.git/'\r\ntao@tao-ubuntu:/var/www/html/simplephp/skeleton$ git push\r\nwarning: push.default is unset; its implicit value is changing in\r\nGit 2.0 from 'matching' to 'simple'. To squelch this message\r\nand maintain the current behavior after the default changes, use:\r\n\r\n  git config --global push.default matching\r\n\r\nTo squelch this message and adopt the new behavior now, use:\r\n\r\n  git config --global push.default simple\r\n\r\nWhen push.default is set to 'matching', git will push local branches\r\nto the remote branches that already exist with the same name.\r\n\r\nIn Git 2.0, Git will default to the more conservative 'simple'\r\nbehavior, which only pushes the current branch to the corresponding\r\nremote branch that 'git pull' uses to update the current branch.\r\n\r\nSee 'git help config' and search for 'push.default' for further information.\r\n(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode\r\n'current' instead of 'simple' if you sometimes use older versions of Git)\r\n\r\nUsername for 'https://github.com': taotang@icloud.com\r\nPassword for 'https://taotang@icloud.com@github.com': \r\nTo https://github.com/taono/simplephp.git\r\n ! [rejected]        master -> master (fetch first)\r\nerror: failed to push some refs to 'https://github.com/taono/simplephp.git'\r\nhint: Updates were rejected because the remote contains work that you do\r\nhint: not have locally. This is usually caused by another repository pushing\r\nhint: to the same ref. You may want to first integrate the remote changes\r\nhint: (e.g., 'git pull ...') before pushing again.\r\nhint: See the 'Note about fast-forwards' in 'git push --help' for details.\r\ntao@tao-ubuntu:/var/www/html/simplephp/skeleton$ git pull origin master https://github.com/taono/simplephp.git\r\nfatal: Invalid refspec 'https://github.com/taono/simplephp.git'\r\ntao@tao-ubuntu:/var/www/html/simplephp/skeleton$ git pull origin master https://github.com/taono/simplephp\r\nfatal: Invalid refspec 'https://github.com/taono/simplephp'\r\ntao@tao-ubuntu:/var/www/html/simplephp/skeleton$ git pull origin master https://github.com/inno-codo/simplephp\r\nfatal: Invalid refspec 'https://github.com/inno-codo/simplephp'\r\ntao@tao-ubuntu:/var/www/html/simplephp/skeleton$ ^C\r\ntao@tao-ubuntu:/var/www/html/simplephp/skeleton$ \r\n"},"comment":{"url":"https://api.github.com/repos/inno-code/simplephp/issues/comments/118462268","html_url":"https://github.com/inno-code/simplephp/issues/14#issuecomment-118462268","issue_url":"https://api.github.com/repos/inno-code/simplephp/issues/14","id":118462268,"user":{"login":"zoe-1","id":1852507,"avatar_url":"https://avatars.githubusercontent.com/u/1852507?v=3","gravatar_id":"","url":"https://api.github.com/users/zoe-1","html_url":"https://github.com/zoe-1","followers_url":"https://api.github.com/users/zoe-1/followers","following_url":"https://api.github.com/users/zoe-1/following{/other_user}","gists_url":"https://api.github.com/users/zoe-1/gists{/gist_id}","starred_url":"https://api.github.com/users/zoe-1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoe-1/subscriptions","organizations_url":"https://api.github.com/users/zoe-1/orgs","repos_url":"https://api.github.com/users/zoe-1/repos","events_url":"https://api.github.com/users/zoe-1/events{/privacy}","received_events_url":"https://api.github.com/users/zoe-1/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T05:11:16Z","updated_at":"2015-07-04T05:11:16Z","body":"Above error message says:\r\n> hint: Updates were rejected because the remote contains work that you do\r\n> hint: not have locally. This is usually caused by another repository pushing\r\n> hint: to the same ref. You may want to first integrate the remote changes\r\n> hint: (e.g., 'git pull ...') before pushing again.\r\n> hint: See the 'Note about fast-forwards' in 'git push --help' for details.\r\n> tao@tao-ubuntu:/var/www/html/simplephp/skeleton$ git pull origin master\r\n\r\nThis means the remote repository has changes that your local does not. \r\n`git pull`  should solve this.  I pushed changes to the remote repo that your local does not have\r\nyou need to pull these changes into your local repo than your local repo will be up to date with \r\nthe remote."}}