前提・内容
お世話になります。
開発マシン(macOS)からサーバー(windows10)へgit pushができる環境を作成したところ、git pushした際に以下のようなエラーが発生しました。
bash
1fatal: ''/d/develop/sample-git'' does not appear to be a git repository 2fatal: Could not read from remote repository. 3 4Please make sure you have the correct access rights 5and the repository exists.
上のエラーが出る前に具体的には開発マシンとサーバーで、以下のコマンドを実行しております。
開発マシン
bash
1cd ~/develop/rust/sample 2git init 3git add . 4git commit -m "sample" 5git remote add origin ssh://{サーバーのユーザー名}@{サーバーのIPアドレス}/d/develop/sample-git 6git push origin master
サーバー
GitBush
1cd /d/develop/sample-git 2git init
やりたいこととしましては表題の通り、
"git push origin master" の際に上記のエラーが発生することなく、pushできるようにしたいです。
もし不足している情報等がございましたらお手数をお掛けしますがお伝えしてくださると幸いです。
よろしくお願いいたします。
追記
- sshコマンドは出来ている
- scpコマンドも出来ている
- git push origin master の際にサーバー側のパスワードが聞かれる(パスワードを入力すると上記のエラー)

回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。