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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:55:50+00:00 2026-06-17T15:55:50+00:00

I modified my .gitconfig in such a way that I have some colors when

  • 0

I modified my .gitconfig in such a way that I have some colors when performing git diff:

$ cat .gitconfig 
[color]
ui = true

I’m working on an ubuntu machine and I edited some code using VIM. After editing a file a execute git diff, once with and once without ui=true.

Problem: in the first case I have ^M characters and the end of the edited lines. However, I don’t see those when turning of color.ui or when looking with vim, cat, more.. at the manipulated file.

  • 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-06-17T15:55:51+00:00Added an answer on June 17, 2026 at 3:55 pm

    It is probably an encoding issue. The ‘git diff’ command is executing Vim thinking that the file format is Dos.

    When you are using any other command, it is correctly recognized as a Unix file.

    Can you try :
    :set fileformat=unix
    in your git diff window ?

    I am not really sure this is the root cause, because I don’t see the link with the ui option.

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

Sidebar

Related Questions

It seems like I have inadvertently modified my git config such that when I
I modified the Writing to a file example such that I can store some
As per this question , I understand that core.autocrlf=true in git will cause CRLF
I have a code base that some of the developers work on via RDP
I have modified a slider script to mimic ebay's slider on home page. I
I have an app modified to take into account the UAC in VISTA. So,
I have modified the Nerd Dinner application to allow editing of child records by
I have modified my MOSS 2007 configuration to query a given target AD successfully.
I modified a function that returns a strongly typed Ilist of products (from a
I modified my db and some fk relations. After rebuilding schema and rebuilding classes

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.