version control - git produces Gtk-WARNING: cannot open display -


i've been working on project remotely through command line on machine don't have admin rights , after running git push origin master following error message:

(gnome-ssh-askpass:29241): gtk-warning **: cannot open display: 

my .git/config file has following contents:

    [core]        repositoryformatversion = 0        filemode = true        bare = false        logallrefupdates = true      [remote "origin"]        fetch = +refs/heads/*:refs/remotes/origin/*        url = https://username@github.com/username/repository.git      [branch "master"]        remote = origin        merge = refs/heads/master 

i getting 403 error earlier. following comment here, put username before @ sign in remote url , since then, i've been getting gtk error.

when login machine using ssh -x , try push, following error:

x11 connection rejected because of wrong authentication. (gnome-ssh-askpass:31922): gtk-warning **: cannot open display:localhost:10.0 

if change url of remote git@github.com:username/repository.git, error is:

ssh: connect host github.com port 22: connection timed out fatal: remote end hung unexpectedly 

do know how fix this?

i have discovered solution problem. described here, ran following command in terminal:

  unset ssh_askpass 

and running git push origin master works way should. can add line .bashrc file.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -