threads / discuss / 44140

error

Subject: error

## tl;dr

2 messages between Sep 22, 2016 and Sep 23, 2016.

replies: 1people: 2as markdown or json

Luciano Schillagi· Sep 22, 2016, 23:02 UTC · lore
Hi,
please, what should I do to fix this error? thanks

Luko ~ $ git init error: malformed value for push.default: aguas error: Must be one of nothing, matching, simple, upstream or current. fatal: bad config variable 'push.default' in file '/Users/imac/.gitconfig' at line 16 -bash: __git_ps1: command not found

Jeff King· Sep 23, 2016, 04:46 UTC · re: Luciano Schillagi · lore

Re: error

On Thu, Sep 22, 2016 at 08:02:35PM -0300, Luciano Schillagi wrote:
Show 7 quoted lines
> please, what should I do to fix this error? thanks
> 
> Luko ~ $ git init
> error: malformed value for push.default: aguas
> error: Must be one of nothing, matching, simple, upstream or current.
> fatal: bad config variable 'push.default' in file '/Users/imac/.gitconfig' at line 16
> -bash: __git_ps1: command not found
Your config file has a bogus value in it.  Try:
  git config --global --unset push.default

Or you may want to simply edit /Users/imac/.gitconfig by hand. It is not clear where the bogus value came from, but possibly the file is corrupted in some way (so you are better off examining it first before asking git to blindly change it).

-Peff

← back to recent threads