Skip to content

Instantly share code, notes, and snippets.

View hirezadehghani's full-sized avatar
👋
I love to develop products for a better world

Reza Dehghani hirezadehghani

👋
I love to develop products for a better world
View GitHub Profile
@hirezadehghani
hirezadehghani / Fixing git issue while using .git in URL.txt
Last active September 29, 2025 16:00
Fix: Git thinks SSH when .git is in URL (GPG key conflict)
# Problem: Git uses SSH instead of HTTPS when .git is in repository URL
## Symptoms:
- Cloning/pulling fails with SSH authentication errors
- Happens even when using HTTPS URLs ending with `.git`
- Particularly affects setups with GPG signing
## Root Cause:
Git sometimes interprets URLs with `.git` suffix as SSH URLs when GPG keys are configured