I'm using SourceTree for mac version 2.7.6 (177) and I'm having a hanging issue with bitbucket. Here's the scenario:
I have a project with 2 remotes, 1 repository on github and 1 bitbucket repository.
Normally, I pull from the github, develop on and push to bitbucket, but since 4th of July, returning from Holidays, my source tree hangs, in fact the pushing does not finish, it just "hangs" without a message.
I found a workaround, pushing from a command line like this:
git push --set-upstream
Once this command is done I can push again with only git push, but only via command line, via SourceTree still not working.
Thanks.
Ton Grommen
It could be that your default remote is the 'wrong' one, did you check? It might be that for the github remote you don't have access to push and for bitbucket you do (please check Settings->User and group access & Settings->Branch permissions).
I recently coincidentally had a similar problem took me an hour to figure out someone revoked my admin rights on the branch... waste of time... but at least setting it back solved my problem.
The problem occurs on a Mac, in the SourceTree on the Mac we cannot find the
tools, options, authentication settings, any idea where they are on a Mac SourceTree?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I meant bitbucket settings, not sourcetree settings regarding the access rights.
As so far goes for remote, that you can verify in sourcetree. Just do $ git remotes than it will at least show the remotes you have for your repository. Right clicking the local branch and selecting push to remote gives you the option to push the either of the ones, it could be the default one is the github not bitbucket
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hue2.0 ssh://git@github.com/........git (fetch)
Hue2.0 ssh://git@github.com/.........git (push)
origin ssh://git@origin.www.........git (fetch)
origin ssh://git@origin.www........git (push)
So I have push for both github and bitbucket
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why push to only one remote?
These are the permissions assigned to my account by the owner of repositories
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Normally, I pull from the github, develop on and push to bitbucket
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ton Grommen Just curious, does this same thing work if you try on terminal?
Can you check if your ssh keys are loaded to the agent? You can run this in terminal to check,
ssh-add -l
If the key isn't listed, you can add using below command
ssh-add <path_to_your_key>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The key was not listed but I added it using the command ssh-add <path_to_your_key> and it still does not work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you sure the remote URL on your repo is ssh?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you enable "Always display full console output" in Preferences -> Advanced and paste the command that is executed by Sourcetree in your case here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Output shown:
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/MoreHue2-develop:refs/heads/MoreHue2-develop
Pushing to ssh://git@origin.www.code.dtf.lighting.com:7999/mor/morehue2.0.git
And then nothing...................................................................
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you get a pop-up for credentials? This might not show on first sight so be careful to monitor your screen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.