मैं अपने प्रोजेक्ट पर कमांड लाइन के माध्यम से दूरस्थ रूप से एक मशीन पर काम कर रहा हूं, जिस पर मेरा अधिकार नहीं है और चलाने के बाद git push origin masterमुझे निम्नलिखित त्रुटि मिलती है:
(gnome-ssh-askpass:29241): Gtk-WARNING **: cannot open display:
मेरी .git/configफ़ाइल में निम्नलिखित सामग्री है:
[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
मुझे पहले 403 त्रुटि मिल रही थी। यहाँ टिप्पणी के बाद , मैंने अपने उपयोगकर्ता नाम को दूरस्थ url में @ साइन करने से पहले रखा और तब से, मुझे Gtk त्रुटि मिल रही है।
जब मैं मशीन का उपयोग करके लॉगिन करता हूं ssh -Xऔर पुश करने की कोशिश करता हूं, तो मुझे निम्नलिखित त्रुटि मिलती है:
X11 connection rejected because of wrong authentication.
(gnome-ssh-askpass:31922): Gtk-WARNING **: cannot open display:localhost:10.0
अगर मैं रिमोट का url बदलूं git@github.com:username/repository.git, तो त्रुटि यह है:
ssh: connect to host github.com port 22: Connection timed out
fatal: The remote end hung up unexpectedly
क्या आप जानते हैं कि इसे कैसे ठीक किया जाए?
git push origin masterकर रहा हूं, इसलिए मुझे नहीं पता कि आप जो कह रहे हैं उसे कैसे लागू करें?
git@github.com:username/repo.gitया https://github.com/username/repo.gitलेकिन आप दोनों के मिश्रण का उपयोग कर रहे हैं।
ssh -X, लेकिन इससे भी मदद नहीं मिली। ऊपर अद्यतन प्रश्न देखें।