Remote on Git via SSH works differently in the shell and Xcode

I have set remote using git remote set-url but if it includes username, git works fine on terminal and doesn't work in Xcode. If url was set without username, it works only in Xcode, but doesn't work in terminal.

The error showing in the shell without username is ERROR: Repository not found.

The Xcode error with included username is The remote repository could not be accessed and username in dialog box is git without ability to change

I did not change ~/.ssh/config after OS update. user.name and user.email are set for --local only, no changes here as well.

$ git remote set-url origin git@github.com-UserName:repo/project-name.git
//Remote commands work only in Terminal

$ git remote set-url origin git@github.com:repo/project-name.git
//Remote commands work only in Xcode

Where is the problem, how can I fix this issue and get it working in both Xcode and the shell?

PS: Yesterday I had only one of my repos working in both Xcode and shell when set url without username (other repos was working as described only either in terminal or xcode), but after minor Mac OS update (just 12.2->12.2.1) it works the described way also now like others. Have no idea what additionally was set but know it's possible to get working both Xcode and Terminal at least.

enter image description here



from Recent Questions - Stack Overflow https://ift.tt/4906KqH
https://ift.tt/7MkF5cj

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation