Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Even with github account configured I cannot get past warning msg. #198

Closed
CodisRedding opened this issue Oct 24, 2015 · 15 comments
Closed

Comments

@CodisRedding
Copy link

My ~/.gitconfig
https://gist.github.com/fourq/7c4b9e58ca2fe43b8515

the warning msg that I keep getting: https://github.com/mattn/gist-vim/blob/ea7dc962c5c2ac2a1c4adc94d54cac190d713648/autoload/gist.vim#L719

Is there something wrong in my .gitconfig?

@mattn
Copy link
Owner

mattn commented Oct 25, 2015

what is output of git config --get github.user?

@CodisRedding
Copy link
Author

I get my github username fourq.

Rocky Assad
r@cky.email
@FourQ

On Oct 25, 2015, at 7:17 AM, mattn notifications@github.com wrote:

what is output of git config --get github.user?


Reply to this email directly or view it on GitHub.

@mattn
Copy link
Owner

mattn commented Oct 26, 2015

Do you install git?

@CodisRedding
Copy link
Author

yeah, it's installed. Couldn't live without it =)

@mattn
Copy link
Owner

mattn commented Oct 26, 2015

do you set gist_post_anonymous ?

:echo gist_post_anonymous

at least, if git is installed and gist_post_anonymous is not set, the message shouldn't be displayed. I guess.

@CodisRedding
Copy link
Author

I don't. Here's my gist settings that I've had for a while. https://github.com/fourq/vim-settings/blob/master/.vimrc#L44

@mattn
Copy link
Owner

mattn commented Oct 26, 2015

https://github.com/mattn/gist-vim/blob/ea7dc962c5c2ac2a1c4adc94d54cac190d713648/autoload/gist.vim#L39-L42

what you get with :echo substitute(system('git config --get github.user'), "\n", '', '') ?

@CodisRedding
Copy link
Author

fourq

@mattn
Copy link
Owner

mattn commented Oct 26, 2015

Then g:github_user should be set.

@CodisRedding
Copy link
Author

So I commented out the gist settings that I posted earlier and ran :Gist again and got this: http://pi.cky.website/image/0s0F1X3a0z1N

@CodisRedding
Copy link
Author

seems to be working now for some reason. https://gist.github.com/16fa7fc9d528c4e98b26 (private)

@mattn
Copy link
Owner

mattn commented Oct 26, 2015

did you solve the issue? closable?

@CodisRedding
Copy link
Author

I suppose so. So just to recap. I commented out my .vimrc settings, opened vim, ran :Gist, it then prompt me for my GH creds. I uncommented the .vimrc settings and all is still working. /shrugs. thanks

@pinggit
Copy link

pinggit commented Oct 27, 2016

I got the same issue...
:Gist
You have not configured a Github account. Read ':help gist-vim-setup'.

ping@ubuntu47-3:$ git config --global --list
user.email=songpingemail@gmail.com
user.name=ping
credential.helper=cache --timeout=3600
ping@ubuntu47-3:
$
ping@ubuntu47-3:$
ping@ubuntu47-3:
$ git config user.name
ping
ping@ubuntu47-3:$ git config --get github.user
ping@ubuntu47-3:
$

@mattn
Copy link
Owner

mattn commented Oct 27, 2016

As you mentioned as, you need github.user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants