Sourcetree can't push problem

Dear Support Team 

I have a problem when trying to push , but the pull operation works without problems
You can see the error that appears as follows

 

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=manager-st push -v --tags origin feature/newDesign:feature/newDesign

POST git-receive-pack (815 bytes)

remote: Hook com.atlassian.stash.internal.repository.ref.restriction.RestrictionEnforcer failed. Error:        

remote: bundle [com.atlassian.bitbucket.server.bitbucket-ref-restriction]       

Pushing to http://iyousef@192.168.60.12:7990/scm/ep/zagelwebproject.git

To http://iyousef@192.168.60.12:7990/scm/ep/zagelwebproject.git

! [remote rejected] feature/newDesign -> feature/newDesign (pre-receive hook declined)

error: failed to push some refs to 'http://iyousef@192.168.60.12:7990/scm/ep/zagelwebproject.git'

Completed with errors, see above.

 

Please provide me with any information to resolve the problem

Best Regards 

9 answers

It's seem that i have got the same problem.

 

Since the update i am not able to push my code to my bitbucket account.

I can push from command line.

ssh -Tv git@bitbucket.org

works fine too. It's seems to be just on Sourcetree. 

Greeting, 

I just updated sourcetree to the latest (2.7.1) and I can't perform push command anymore. pull command seems fine. 

I'm able to push through terminal, seems like it's a bug from the new update.

 

Jake

0 votes

Hi Rula, have you tried pushing from the command line too? If you get the same error from the command line, then the issue is not related to Sourcetree and we'll need to figure out what's going on.

Can you also let us know where are you pushing to? Is it Bitbucket Server? Or Bitbucket Cloud? Or Github...?

Regards,

Ana

Dear Ana 

this problem appear when i try push code from Sourcetree to Bitbucket server  

Best Regards

Getting Push/Pull errors as well. Running 2.4.8.0 on Windows. Command line works.

Dear Support Team,

I have the same problem.

I can't push and pull from sourcetree 2.7.4 with Bitbucket Cloud and MacOS.

I  can push from command line but it's inconvenient.

Please help me

Ryo.

0 votes

Hi,

I can confirm that I'm also experiencing this problem currently. I'm using the latest version of SourceTree.

Looking forward to hearing what solutions can be recommended.

Cheers.

0 votes

Same issue. 

0 votes

Similar issue. Push from command line says all is up to date, but viewing source code online shows old source. Local files are not changed, but I can see the changes when double-clicking to edit a file from Sourcetree.

0 votes

SAME HERE!!!!!!!!!!

How can i push afterall???

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

984 views 2 3
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you