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.
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.
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
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:
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 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.
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