Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git push not working, no error

Tags:

git

bitbucket

I am trying to push my commits to Bitbucket using the command

git push origin master

Nothing happens. I am represented with a command prompt, and no error message. When I browse the source online, my code has not been uploaded.

git remote show

returns "origin"

git push --verbose

Does not show any additional information.

I have pushed many times using this method, but it suddenly just stopped working.

I am using 2.6.1.windows.1 on Windows 10

UPDATE: It appears to a problem with Git itself. I can't push, pull, or clone any repository on both GitHub or Bitbucket. It seems that any git command that connects to a remote isn't working.

I tried uninstalling and reinstalling git. I tried installing both, 2.6.1 and 2.7.0 (2.7 didn't even install properly on Windows 10 Build 14251). I can interact with the repo without an issue on other computers.

like image 485
Dave Avatar asked Jan 29 '16 05:01

Dave


4 Answers

I had the same error, push/pull/clone would execute with no errors, no feedback, but nothing happended. What helped was to install latest GIT and when option "Choosing HTTPS transport backend" option came up I have selected "Use the native Winbdows Secure Channel library" and it all worked again ... Hope this help someone.

enter image description here

like image 122
vidriduch Avatar answered Sep 30 '22 01:09

vidriduch


Check if you are in a detached HEAD mode (git symbolic-ref --short -q HEAD is empty), which would explain why a git push fails silently.

If you do have a legitimate branch checked out, then the other test is to make a new clone, import your changes and try to push from that new clone to see if the issue persists.

git clone /url/repo
git remote add work ../previousrepo
git fetch work
git reset --hard work/master
git push -u origin master
like image 30
VonC Avatar answered Sep 30 '22 00:09

VonC


I had a similar problem with my git pushes and git commits not showing up on Bitbucket.

Problem specifics: My Bitbucket updates had been working fine. I stopped working on the project for a day or two in my environment (Cloud9 in this case). When I resumed, my Cloud9 terminal showed that I was in the correct branch when I typed the command:

git status

However, no changes appeared in my Bitbucket branch.

My solution:

  • Within Bitbucket, click on "Branches" either on the side panel or within the main window.
  • You will see your branches. Click on the branch you're working in your environment, and that you want to push into.
  • Once inside the desired branch, there should be a button in the top right (unless they change the template) called "Checkout." Click on that.
  • Bitbucket provides the following message: Check out this branch on your local machine to begin working on it. It also provides the following code to type or paste into your terminal:

    git fetch && git checkout static-pages
    
  • Run that command in your terminal.

  • This should reset the connection.
  • Try your git push. It should work now.
like image 41
Siggytron Avatar answered Sep 30 '22 01:09

Siggytron


This is a open issue in Bitbucket, as @ahmed says. The updated open issue is here.

They recommend power cycling your modem. Alternatively, you can use a different wifi source, which worked for me.

like image 45
theresawalrus Avatar answered Sep 30 '22 02:09

theresawalrus