touch test
git add test
git commit -m "test"
git push -u origin master
This worked. The file was uploaded to the repository.
rm test
cp -R ../website ./website
git rm test
git add website/
git commit -m "Initial"
git push -u origin master
This did not give any output, and nothing seems to have bee done to the repository. The test file is still present in the repository.
$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)
Can anyone assist?
Recreated the branch on both client and server, to no succes. It works when there's just one file inside, but it will simply not push the website folder to the server.
This is the only strange thing I can see; POST git-receive-pack (chunked)
Looks like this is something to do with BitBucket. Another question here had the same issue: Hanging at "POST git-receive-pack (chunked)"
The solution is to use Git+SSH rather than HTTP. It seems to only affect repos with files over a few megabytes.