Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Commit + Push not working

When I make a change in my project, and I try to commit + push the changes to develop branch it allows, doesn't show any error, but the changes do not take effect in the branch.

It stopped working overnight because it was fine.

What can I do?

How can I find where the commit and push are going?

Best regards

Xalo Carvalho

15 answers

go to the setting and reset your gitHub repository URL link

Do you have any uncommitted changes? It doesn't look like you do. If you don't, then a commit+push won't have anything to do.

The error was found in a server file which keeps the GIT key.

The clients couldn't connect with GIT because they didn't have permission to do so because they couldn't find the file.

Thanks for all the help.

You might check your remote settings, and make sure SourceTree is pushing to that Bitbucket account, and not somewhere else.

bitbucket, with ssh connection

Doesn't answer my question. Let me rephrase: how can you tell that the commits aren't on the remote? You mentioned a website. What website is it, what does it look like? Or if you are using SSH to check which commits are on the remote, what commands are you using?

I'm using an ssh connection.

I see. SourceTree behaves as though everything worked, even to the point of showing that origin/develop is pointing to the latest commit. But if you actually go to the remote repository, it does not have the latest commits.

How are you checking the commits on the remote? Is it Bitbucket/Github?

Ok, let's see if I can make myself more clear about the problem I'm having.


You can see that I made a small change in a file (bottom right size).

I then used the ST terminal console to try and push it, and I got that mistake, the one I posted before.

But if I use the ST buttons to commit and push, it doesn't show any error message, and the updates are pushed.


But the problem is that on the site itself that update doesn't show, so the push, despite not returning any error, isn't working properly, or is sending the files to some location I can't even find.


Hope I made myself understood.

Ok, well, the screenshot you provided doesn't really demonstrate the problem. The commits in your log are older, and I can't see the label for either develop or origin/develop. 

The push is also successful, but the changes I made, committed and pushed aren't showing / taking effect in the develop branch.

I've tried using the terminal to do a push, this is what I get:

remote: Please make sure you have the correct access rights
remote: and the repository exists.
remote: Host key verification failed.
remote: fatal: Could not read from remote repository.

But the key to the host is correct when accessing it with putty, for example.

So, it is comitted, but it isn't pushed?

The commit+push is successful, but it doesn't really do what's supposed to. The changes aren't taking any effect. It's like, despite the push, it isn't really pushing any of the changes I made.

I haven't made any changes. Until the selected commit it worked fine, but all of them afterward don't.

I normally use PhpStorm to do the commit+push in the develop branch and SourceTree do merge the master branch.

It just stopped working. 





Before & after screenshots for clarification, please.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

5,731 views 4 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you