$ git remote show origin
Returns absolutely nothing. I started noticing something was weird when I tried creating and then pushing a new branch to our repo this morning. My push/pull commands just exited without saying anything.
Interestingly, the following commands show something:
$ git config --get remote.origin.url
https://github.com/MYCOMPANY/BLAH.git
Also, this is returned:
$ git remote -v
origin https://github.com/MYCOMPANY/BLAH.git (fetch)
origin https://github.com/MYCOMPANY/BLAH.git (push)
I tried removing origin:
$ git remote rm origin
And then re-adding it:
$ git remote add origin https://github.com/MYCOMPANY/BLAH.git
But remote show still fails. Attempting to do a pull or a push just quickly exits and reports nothing.
$ git fsck --full
Returns a bunch of dangling commits and blobs, but nothing else.
I'm not a git power user and so I feel as though I'm a bit out of my element here. I'm not sure what else to do or where to go with this?
Thanks in advance.
Edit:
$ git --version
git version 2.14.1.windows.1