Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6954313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:35:24+00:00 2026-05-27T14:35:24+00:00

I have local repository, and a remote bare repository. I’ve made changes to my

  • 0

I have local repository, and a remote bare repository. I’ve made changes to my local files, and other guy has made changes too, but he just sent me files. I’ve copy-pasted them in my local tree and committed. On commit I’ve got messages on files that I have copy-pasted

LF will be replaced by CRLF

I’ve just committed all the files and pushed them to remote bare repository. And when on remote I run

git branch

I get the next error message

HEAD not found below refs/heads!

Now it seems to me that this is because of these files with CR instead of CRLF.

Any suggestions? Will appreciate any help on how to handle such situations/fix my repo.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:35:25+00:00Added an answer on May 27, 2026 at 2:35 pm

    It looks like the HEAD on your remote is pointing to an invalid branch. You can view what it’s pointing to with:

    git symbolic-ref HEAD
    

    and fix it to point at a valid branch with:

    git symbolic-ref HEAD refs/heads/branch-that-exists
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a local repository cloned from a bare remote repository. The following command
I have a local repository where I work daily and a remote bare repository
I have a local git repository which tracks a remote SVN repository via git
I have a local repository I'm working on and its remote is hosted on
I have a local mercurial repository with some site-specific changes in it. What I
I have checked out files from my svn repository to a local project folder.
I have a remote tracking branch tracked locally in my local repository using 'git
I have a local git repository. Recently I have added a remote repository from
I'm using a local Git project repository, and have created a remote repository followed
I have a local repository called TestRepo. I clone it with the --bare option,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.