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

  • Home
  • SEARCH
  • 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 6711487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:08:45+00:00 2026-05-26T08:08:45+00:00

I have cloned a repository from github on a Windows 7 box, and made

  • 0

I have cloned a repository from github on a Windows 7 box, and made some of changes I would hate to lose. However, all my file have wrong line endings, \n instead of \r\n.

How should I fix it?

I think I should clone my repo again with correct line endings, and move over my changes manually.

How do I clone it properly, so that all line ending are \r\n?

Are there any better suggestions?

  • 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-26T08:08:45+00:00Added an answer on May 26, 2026 at 8:08 am

    You can’t clone the repository with a different style of line endings. The data in the repository is what it is. What you can do is tell git how you want to handle the line endings when checking in or out. The link that birryree pointed out in the comments is a good source. There is also Github’s help page on it.

    Depending on what you are editing, you can also use a Windows text editor that doesn’t require crlf, like notepad++. You can change the line endings that notepad++ uses by default in settings->preferences->New Document/Default Directory

    To add from Charles’ comment, you can also convert line endings to unix or windows style in notepad++. You do this by going to edit->EOL Conversion

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I cloned a git repository from GitHub, made some changes and some commits; I
I have a repository which I have already cloned from Subversion. I've been doing
I have a local repository cloned from a bare remote repository. The following command
I have a git repository on github. I would like to migrate the master
With git-svn If I have cloned svn repository with all trunk, branches and tags,
I have successfully cloned Git repository in Jenkins over Git/SSH on Windows 2008 32-bit.
I have a git repository which tracks an svn repository. I cloned it using
Some repository clones I have allow me to do this: % git pull %
I cloned a project from github with git clone --mirror . That left me
I have repository at github for ruby on rails project. First time i did

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.