私は自分のプロジェクトを開始していて、リモート リポジトリに github を使用していました。
OS を Ubuntu から Xubuntu に変更しました。
しかし、古いファイルはすべて新しい場所にコピーしました。
変更をプッシュする必要があるプログラムで作業を続けています。
新しい SSH キーを生成し、github に追加しました。
変更をプッシュしようとしましたが、奇妙な情報が出力されます:
nazar@nazar-desctop:~/Documents/workspace/NewYearGift$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)
nazar@nazar-desctop:~/Documents/workspace/NewYearGift$ sudo git push -u origin master
[sudo] password for nazar:
ssh: Could not resolve hostname github.com: Name or service not known
fatal: The remote end hung up unexpectedly
アップデート:
このプロジェクトを再作成したところ、パスフレーズについて尋ねられました。
nazar@nazar-desctop:~/Documents/workspace/NewYearGift$ git commit -m "correct smole issue"
[master e2cbdec] correct smole issue
1 file changed, 29 insertions(+), 29 deletions(-)
rewrite README.md (89%)
nazar@nazar-desctop:~/Documents/workspace/NewYearGift$ git push
Warning: Permanently added the RSA host key for IP address '192.30.252.128' to the list of known hosts.
Enter passphrase for key '/home/nazar/.ssh/id_rsa':
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 843 bytes, done.
Total 3 (delta 1), reused 0 (delta 0)
To git@github.com:nazar-art/NewYearGift.git
3fb0853..e2cbdec master -> master
今では動作しますが、なぜそれほど厳格なのですか?
説明できますか?
この問題を解決するにはどうすればよいですか?