Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`git push` -- No output, nothing happens

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)

like image 858
RobinJ Avatar asked Sep 22 '12 16:09

RobinJ


People also ask

Why isn't my git push is not working?

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.

Why push command is not working?

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.

How do you force push?

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.

Why is git push showing everything up to date?

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.


1 Answers

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.

like image 78
akraut Avatar answered Sep 21 '22 00:09

akraut