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)
If git push origin master not working , all you need to do is edit that file with your favourite editor and change the URL = setting to your new location. Assuming the new repository is correctly set up and you have your URL right, you'll easily be able to push and pull to and from your new remote location.
The git push command gets rejected because of following reasons: It may be possible that push permission is not provided to the user pushing the code changes. I suggest checking the user permissions.
To force a push to only one branch, use a + in front of the refspec to push (e.g git push origin +master to force a push to the master branch). See the <refspec>... section above for details. Force an update only if the tip of the remote-tracking ref has been integrated locally.
If your latest commit is not a branch head, you may get this error. To fix this, follow the steps below. To save your files, use the git stash command. Then look at the log and get the SHA-1 of the latest commit.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With