Git sync error: There is no tracking information for the current branch

Product: PowerShell Universal
Version: 4.3.4

Last night I upgraded to PSU 4.3.4 from 4.2.12 and ever since the upgrade our git sync has not worked. This is what is showing in the application:
image

I did see this KB about this issue but it was recommended from 4.2.0 to 4.2.5, and given it was working perfectly on 4.2.12 I am not sure if it is related. I also saw this forum post about the same issue but it is for an older version and I do not see a solution for it.

Here is a screenshot of the git settings in appsettings.json:

I compared this with the pre-upgrade appsettings.json and there doesn’t appear to be any changes. Does anybody know how to fix this issue?

I have a note in my dev environment documentation that addresses this, I’m pretty sure the solution came from this forum at some point but I can’t find the original post now - This is the solution that I’ve had to use a few times in the past:

There can sometimes be an error indicating ‘There is no tracking information for the current branch.’ - The solution is to modify the .git\config file in the repository folder, adding the following, making sure to substitute ‘mybranch’ with the branch configured in the Git sync settings.

[branch "mybranch"]
    remote = origin
    merge = refs/heads/mybranch

Thanks so much for the response. The file already has this:

[branch "master"]

So given that the branch name is master would it just be this?

[branch "master"]
	remote = origin
	merge = refs/heads/master

Yep, that’s exactly right

I owe you a beer, that worked great. Thanks so much for the help. I’m definitely gonna document this fix on our end

It’s already documented here, with other ways to fix it, for the record.