Windows-Can't fetch/pull

I've just installed ST on windows and created a bookmark from a local repository. It connects to github fine, as I can see other team members changes showing up. I setup gitflow from within ST.

It might show something like my branch is 3 commits behind the github tracking branch, with a "3" next to the pull icon. If I pull, or fetch, it just sits there with the progress bar going and going, but nothing happens. If I switch to gitgui that came with git/windows, it pulls in like .5 seconds.

I've updated git itself to 1.9.5 from 1.9.4, uninstalled ST, reinstalled, etc. but the same thing happens.

It just says "Fetching all" and when I click the Show Full Output box, it says "git -c diff.mnemonicprefix=false -c core.quotepath=false fetch --tags github"

The same thing happens when trying to push. It just sits there with the progressbar spinning.

So I don't know why this isn't working, since it's connecting to github and showing all branches, etc. I just can't do anything else it seems.

6 answers

Sounds like you are maintaining your own git installation. Do you have SourceTree set to use "system git"?

Yes, I do. I also just tried using Embedded Git, but with the same result. Both are using Git 1.9.5.

0 vote

Hi,

Is it possible you are using SSH to connect to the repo but the SSH agent isn't running?

Try Tools/Launch SSH Agent.

No, I'm using https to connect. As a test, I cloned the repo from github and it worked fine. It just doesn't work when creating a bookmark from File->Clone/New->Add Working Copy.

You might compare the repository configs between the repo you cloned directly from github and the existing one.

Thanks for your reply smile 

The config that DOESN'T work (from Add Working Copy)

[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	symlinks = false
	ignorecase = true
	hideDotFiles = dotGitOnly
[remote "github"]
	url = git@github.com:ACCOUNT/REPO-NAME.git
	fetch = +refs/heads/*:refs/remotes/github/*
[gui]
	wmstate = normal
	geometry = 1336x695+304+160 378 307
[merge]
	summary = true
[gitflow "branch"]
	master = master
	develop = develop
[gitflow "prefix"]
	feature = feature/
	release = release/
	hotfix = hotfix/
	support = support/
	versiontag = 
[branch "develop"]
	remote = github
	merge = refs/heads/develop

 

The one that works (clone from GitHub)

[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	symlinks = false
	ignorecase = true
	hideDotFiles = dotGitOnly
[remote "origin"]
	url = https://github.com/ACCOUNT/REPO-NAME.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master
[gitflow "branch"]
	master = master
	develop = develop
[branch "develop"]
	remote = origin
	merge = refs/heads/develop
[gitflow "prefix"]
	feature = feature/
	release = release/
	hotfix = hotfix/
	support = support/
	versiontag =

I've just masked the github user ACCOUNT and the REPO-NAME, but they are identical in both.

Ugh, I just noticed that I WAS using SSH for the bookmark created from a local copy. I was using Putty Pageant with regular git for the ssh keys. So I take it I have to use the built in ssh agent for the key?

I use SourceTree with Pageant, so you should be able to get that to work. I'm not sure what's necessary offhand - it's been too long.

The thing is, it should all work or not work. Like I can view the repository just fine. If there was a key issue it seems I shouldn't even be able to do that. It just doesn't make sense that I can view commits, etc, but not push/pull/fetch/etc. It's obviously doing some sort of (successful) polling because when someone else pushes to the repo it just shows up in ST.

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

273 views 0 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot