Xcode 12b - Push to git repository fails

Hi,

when I try to push to my git repository using Xcode 12 beta, I get the following error:

Code Block
An unknown error occurred
username does not match previous requests (-1)

It works correctly using Xcode 11, using the same copy / files on disk.

Is this a known issue?

Thank you,
Matthias

Answered by m.gansrigler in 621696022
just a quick update, this has now been resolved.
For future reference, this was caused by multiple entries for the same repository in Xcode's user defaults' DVTSourceControlAccountDefaultsKey.
What I did is remove them all and then do a pull for the repository in Xcode.

For me, it turned out to be an issue with the xcodeproj file AND settings. I removed the DVTSourceControlAccountDefaultsKey and also recreated my Xcodeproj from scratch. If you are doing a Swift package that does not require an xcodeproj then just delete it. Very annoying problem to deal with.

Xcode 12b - Push to git repository fails
 
 
Q