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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:34:31+00:00 2026-05-25T15:34:31+00:00

in my repository i have several shell scripts that run in a cygwin console

  • 0

in my repository i have several shell scripts that run in a cygwin console on windows machines. my problem is every time i update those files git automatically converts them to CRLF line endings and i have to manually open them up, convert them to unix, save em, commit them, repeat when updated.

now, if i do

git config --global core.autocrlf false

then git will stop trying to assume what i want by converting the line endings and blindly copy them, correct?

is there a way that i can push this configuration setting to all the users of my repository or does each user have to set this variable themselves

  • 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-25T15:34:32+00:00Added an answer on May 25, 2026 at 3:34 pm

    Options that are set with git-config for a single repository are saved inside .git/config, which is not pushed to other users.

    But you can get the same result with gitattributes. Attributes can be set in a file named .gitattributes inside the workingtree, so it will be pushed to others. Furthermore they can be set for single files or patterns. Put

    *.sh -text

    in the .gitattributes file. This will stop all files ending in .sh from being automatically converted.

    Alternatively you could write

    *.sh eol=lf

    to force conversion to unix format.

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

Sidebar

Related Questions

I have a several branches in my repository and I'm finding that over time
I have a largish Mercurial repository that I've decided would be better as several
We have a public Sonatype Nexus Maven Repository which is a proxy for several
Presently, we've got several main projects each in their own repository. We will have
I'm using Visual SVN on my Windows Box. I have Repository Application , which
I have several projects which are shared between Windows and Mac. The dev machine
I have several projects that build reusable libraries. All these projects are under source
The situation is this: We have several (19) sites that are currently configured to
Okay so here is the problem I am having. I have several unit tests
I have a git repository consist of several git submodules. If I want 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.