* wrong info from 'git remote show <remote>' about 'git push' configuration
@ 2018-10-22 10:43 alexander barakin (aka sash-kan)
0 siblings, 0 replies; only message in thread
From: alexander barakin (aka sash-kan) @ 2018-10-22 10:43 UTC (permalink / raw)
To: git
"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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-10-22 10:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-22 10:43 wrong info from 'git remote show <remote>' about 'git push' configuration alexander barakin (aka sash-kan)
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).