I have a modified file in the Git working directory that I want to undo. In the submodule this file is not .
I tried 3 different teams and nothing helped.
git checkout -- <file>, or git checkout <file>
git checkout -- <file>
or git checkout <file>
git reset HEAD --hard
git stash save --keep-index
How to delete this file?
Screenshots:
While you are installing git config --global core.autocrlf true, you will see the changes automatically applied to these files.
git config --global core.autocrlf true
I would recommend:
core.autocrlf
false
core.eol
.gitattributes
Source: https://habr.com/ru/post/1548713/More articles:Django: saving form with user as foreign key - pythonHow to get records with specific identifiers? - swiftFirefox does not allow empty content area - jqueryLocal stream storage variable addresses - gccWhy would you use JNI to draw on an AWT Canvas? - javaNavigateToViewModel with Caliburn Micro 2 and Windows Phone 8.1 - windows-phone-8.1Get LLVM IR CPU Loops Using CostModel - llvmHow to cancel an asynchronous http request in Objective-C? - asynchronousHortonworks HA Namenodes gives error "READ operation category not supported in pending state" - hadoopHow to save an interactive plot created by ggvis? - rAll Articles