ターゲット:/ var/www/html/wpをリモートgithubリポジトリのnewstartにプッシュする。WordPressのディレクトリをリモートgithubリポジトリにプッシュできないのはなぜですか?
ssh -T [email protected]
You've successfully authenticated, but GitHub does not provide shell access.
sshとgithubは良好な状態です。 1.Toリモート
で
はgithubのWebページでnewstart
という名前の新しいプロジェクトを作成します。 SRC refspecマスター:原点マスター
エラーを押し5.git
2.cdの/ var/WWWW/HTML/WP
3.sudoのgitのinit
4.git *
を追加いずれにも一致しません。
エラー:一部の参考文献を「原点」にプッシュできませんでした。
ありがとうございました。
git commit -m "First commit"
git remote add origin git+ssh://[email protected]/someone/newstart.git
git push origin master
To git+ssh://[email protected]/someone/newstart.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'git+ssh://[email protected]/someone/newstart.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
/var/www/html/wpをリモートgithubリポジトリにプッシュする方法は?
2つのコマンドが追加されました。新しい問題が発生します。 –