search

Home  >  Q&A  >  body text

Why does the folder managed by git change when I manually copy it directly from Windows to Linux?

Why does the folder managed by git change when manually copied directly from Windows to Linux?
Almost all files are considered to be modified status by git under Linux.
What is the difference between this and pushing to github or other git servers, and then cloning or pulling from the server?

PHPzPHPz2781 days ago782

reply all(2)I'll reply

  • 阿神

    阿神2017-05-16 13:35:20

    I think it may be a problem with the file attributes. When copied from win to linux, the permissions of the file have changed, causing the system to think so.

    reply
    0
  • 某草草

    某草草2017-05-16 13:35:20

    The newline character at the end of the file under Windows is different from the newline character at the end of Linux

    reply
    0
  • Cancelreply