# wrong info from 'git remote show <remote>' about 'git push' configuration

1 messages from 2018-10-22 to 2018-10-22. Participants: alexander barakin (aka sash-kan).
Thread: https://gitlist.dev/t/49635

## alexander barakin (aka sash-kan), 2018-10-22 10:43

Subject: wrong info from 'git remote show <remote>' about 'git push' configuration
Message-ID: <7871821540204990@iva3-0d9a30469759.qloud-c.yandex.net>
URL: https://gitlist.dev/e/7871821540204990%40iva3-0d9a30469759.qloud-c.yandex.net

```
"git remote show <remote>" shows wrong information
about not yet configured for 'git push' local ref.

steps to reproduce:

$ git init
$ git remote add origin https://github.com/git/git # for example
$ git pull origin master
$ git remote show origin
...
  Local ref configured for 'git push':
    master pushes to master (up to date)
$

but the local branch "master" is not yet configured to push to remote "master":
1. there is no section '[branch "master"]' (with required content) in the .git/config
2. attempt to push results in error (and that's right):
$ git push
fatal: The current branch master has no upstream branch.

```
