Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 3
    1.) Open the .git/config file 2.) Change " [remote "origin"] url = git.somehost.com/group/projectName " to "[remote "origin"] url = git.somehost.com/group/projectName.git " (i.e. add ".git" to projectName) Commented Jun 1, 2022 at 9:56
  • 4
    You can add .git to the remote url directly in command line: git remote set-url origin https://.../repo.git Commented Feb 13, 2023 at 10:43
  • Also check you haven't got any InsteadOf settings that would change the protocol used. Running git remote show origin will take InsteadOf config into account and show you the actual urls that will be used. Commented Mar 29, 2024 at 20:11