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 390505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:58:16+00:00 2026-05-12T15:58:16+00:00

We have a repository that was exported from subversion into git. This repository is

  • 0

We have a repository that was exported from subversion into git. This repository is used by Mac, Linux, and PC users. Needless to say the line endings are a mess. Some files end in CRLF, LF, or CR and some have a mix between all two or three in one file.

Adding autocrlf = true seems to fix things slightly. However the diffs come up quite strange at times, ie a one line edit to a file makes all lines appear changed in the diff (I assume it was due to the line endings for the file were all rewritten) and sometimes one line edits to a file works correctly.

Is there a website, or could someone please explain how we can sort this mess out? Is there a git setting we have to set, or do we have to do a bulk update of all the files to have a certain line ending or what?

Any help would be much appreciated as its quite a mess!

(The following stackoverflow post appears it might help, although it doesnt answer what happens when we have another mac or pc or linux user commit another patch)

  • 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-12T15:58:16+00:00Added an answer on May 12, 2026 at 3:58 pm

    This related SO question will be of interest to you:

    Trying to fix line-endings with git filter-branch, but having no luck

    And here is a link to similar advice from Github.

    Also, as mentioned in Greg Hewgill’s post it is wise to verify that future committers use an editor which handles the new line-ending policy correctly.

    When you say “Adding autocrlf = true seems to fix things slightly.” I assume this was done in using .gitattributes.

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

Sidebar

Ask A Question

Stats

  • Questions 305k
  • Answers 305k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It seems to be the bug reported here: http://groups.google.com/group/ggplot2/browse_thread/thread/6a7929d2b122efb2 May 13, 2026 at 9:06 pm
  • Editorial Team
    Editorial Team added an answer When SQL Server Mgmt Studio creates a view, I assume… May 13, 2026 at 9:06 pm
  • Editorial Team
    Editorial Team added an answer wx.TR_HAS_VARIABLE_ROW_HEIGHT applies to wx.TreeCntrl not wx.gizmos.TreeListCtrl, read http://www.wxpython.org/docs/api/wx.gizmos.TreeListCtrl-class.html to see… May 13, 2026 at 9:06 pm

Related Questions

We've completely lost our repository and we have 8 developers with uncomitted changes. Restoring
We have a git project which has quite a big history. Specifically, early in
I am trying to setup a repository of reusable code. I was thinking about
Thinking about avoiding code replication, I got a question that catches me every time

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.