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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:23:33+00:00 2026-06-13T22:23:33+00:00

I have a repository cloned from GitHub, and I made changes to file A,

  • 0

I have a repository cloned from GitHub, and I made changes to file A, however Git is detecting
changes to file B,C and D. All three files are detecting the changes as basically the entire contents of B,C,D. i.e. +all lines in B,C,D, -all lines in B,C,D.

I don’t want to commit this as it makes for a dirty commit. Why is git detecting these changes and how to I get git to ignore these changes forever?

The project is in C#, I use the GitHub windows application and the IDE is VS Express 2012.

Edit:
I realize the files have changed, but is there a way to a) find out what changed and b) tell git to ignore them and not pick them up again between commits. It seems my editor is modifying files B,C,D in some way after I first openened the cloned project.

Even after running a git reset –hard, git diff still reports the changes.

  • 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-13T22:23:34+00:00Added an answer on June 13, 2026 at 10:23 pm

    You probably need to tell git about your line ending strategy.

    See the following resources for more information on this subject

    • https://help.github.com/articles/dealing-with-line-endings#platform-windows
    • http://lydiapchung.wordpress.com/2012/06/01/github-for-windows-line-endings/

    Note: Short time fix would require to tweak the core.autocrlf setting on your computer. The correct fix would be to create a .gitattributes files, commit it, and send a Pull Request to the upstream repository you’ve cloned. Indeed, it would not only fix your issue, but would also prevent new users from stumbling on the same problem later.

    An example of a valid, C# project compatible, cross platform .gitattributes file can be found here. Feel free to get some inspiration from it 😉

    A very detailed blog post about line endings and Git inner workings is Mind the end of your line. It’s very well worth the read.

    • 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 cloned a repository from github on a Windows 7 box, and made
I currently have a git repository at github that stores the packaging files for
Hi guys I have a remote repository cloned locally, Because my new changes have
I have cloned a remote SVN repository with git-svn. I have modified a pom.xml
I have a remote git repository and I have cloned one branch git clone
I have repository on GitHub to which I commit regularly from my local computer.
I cloned a project from github with git clone --mirror . That left me
I have a local repository cloned from a bare remote repository. The following command
I have made a bare repository (MY_LOCAL_REP) out of a public git repository hosted

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.