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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:00:51+00:00 2026-05-25T11:00:51+00:00

Started a Git repository under Ubuntu 9.10. Finally upgraded to 10.04. Current Git is

  • 0

Started a Git repository under Ubuntu 9.10. Finally upgraded to 10.04. Current Git is 1.7.0.4.

Now when I edit a file (with gedit) that was last changed before the upgrade, then commit, the commit is full of false-positive changes, ~400 lines out of ~1400.

I use spaces to indent within my source, if that matters.

Edit: a false-positive change looks like

- var a = 1;
+ var a = 1;

Edit: problem is CR/LF changed to LF, so question becomes how to suppress these on commit? (And maybe that’s not advisable?)

  • 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-25T11:00:52+00:00Added an answer on May 25, 2026 at 11:00 am

    Check the GitHub help on the subject.

    In your case, that would be setting this config value:

    $ git config --global core.autocrlf input
    

    This will convert everything to LF when committing. It may cause problems if your repository is expected to be in CR/LF.

    If you’re using Gedit, this plugin would be nice to have in your case.

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

Sidebar

Related Questions

I started a local git repository. Now, at this point, I want to publish
I've just started using git in Vista, with my repository under /path/to/project/git repo .
I started cloning an SVN repository using the git-svn's clone operation. After about 6
git status tells me that my branch and the one I started from on
I set up a rails app on a laptop, and started local git repository
I'm contributing to LibreOffice and have started learning git. I've cloned the LibreOffice repository
What I'm doing: I'm working in Xcode, and started using Git not that long
I've just started learning Git, and the tutorial I'm using says that when cloning
I'm just getting started with Git. I've got: a repository on my local machine
I am new to git. I could setup my git repository and started to

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.