touch test
git add test
git commit -m "test"
git push -u origin master
これはうまくいきました。ファイルがリポジトリにアップロードされました。
rm test
cp -R ../website ./website
git rm test
git add website/
git commit -m "Initial"
git push -u origin master
これは何の出力も与えず、リポジトリに対して何も行われていないようです。テストファイルはまだリポジトリに存在します。
$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)
誰かが助けることができますか?
クライアントとサーバーの両方でブランチを再作成しましたが、成功しませんでした。内部にファイルが1つしかない場合は機能しますが、Webサイトフォルダーをサーバーにプッシュすることはありません。
これは私が見ることができる唯一の奇妙なことです。POST git-receive-pack (chunked)