{"thread":{"id":"49635","subject":"wrong info from 'git remote show <remote>' about 'git push' configuration","startedAt":"2018-10-22T10:50:57Z","lastAt":"2018-10-22T10:50:57Z","messageCount":1,"participants":["alexander barakin (aka sash-kan)"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"361153","messageId":"7871821540204990@iva3-0d9a30469759.qloud-c.yandex.net","threadId":"49635","inReplyTo":null,"subject":"wrong info from 'git remote show <remote>' about 'git push' configuration","fromName":"alexander barakin (aka sash-kan)","fromEmail":"alex@barak.in","sentAt":"2018-10-22T10:43:10Z","receivedAt":"2018-10-22T10:50:57Z","isPatch":false,"sender":{"key":"alex@barak.in","avatar":null},"body":"\"git remote show <remote>\" shows wrong information\nabout not yet configured for 'git push' local ref.\n\nsteps to reproduce:\n\n$ git init\n$ git remote add origin https://github.com/git/git # for example\n$ git pull origin master\n$ git remote show origin\n...\n  Local ref configured for 'git push':\n    master pushes to master (up to date)\n$\n\nbut the local branch \"master\" is not yet configured to push to remote \"master\":\n1. there is no section '[branch \"master\"]' (with required content) in the .git/config\n2. attempt to push results in error (and that's right):\n$ git push\nfatal: The current branch master has no upstream branch.\n"}]}