From: Felipe Contreras <felipe.contreras@xxxxxxxxx> Sent: Sunday, August 28, 2022 4:00 AM To: Caglar Akyuz <caglar.akyuz@xxxxxxxxxxxxxxxxxxxx> Cc: git@xxxxxxxxxxxxxxx <git@xxxxxxxxxxxxxxx> Subject: Re: Ambiguous 'HEAD' issue. On Sat, Aug 27, 2022 at 5:15 PM Caglar Akyuz <caglar.akyuz@xxxxxxxxxxxxxxxxxxxx> wrote: >> Recently I changed one of my repo's origin URL from gitlab to github. After this switch, I start getting: >> >> warning: refname 'HEAD' is ambiguous. >> * git show-ref | grep -i head -> nothing suspicious > Are you sure? You don't have a ref called "HEAD"? Just "HEAD". I don't see just "HEAD". "git show-ref | grep HEAD" doesn't show anything if that's what you mean. Thanks, Caglar