Merge branch 'ah/doc-gitattributes-empty-index'
An example in documentation that does not work in multi worktree configuration has been corrected. * ah/doc-gitattributes-empty-index: doc: do not use `rm .git/index` when normalizing line endings
This commit is contained in:
commit
2bc81f2a83
@ -229,7 +229,7 @@ From a clean working directory:
|
|||||||
|
|
||||||
-------------------------------------------------
|
-------------------------------------------------
|
||||||
$ echo "* text=auto" >.gitattributes
|
$ echo "* text=auto" >.gitattributes
|
||||||
$ rm .git/index # Remove the index to re-scan the working directory
|
$ git read-tree --empty # Clean index, force re-scan of working directory
|
||||||
$ git add .
|
$ git add .
|
||||||
$ git status # Show files that will be normalized
|
$ git status # Show files that will be normalized
|
||||||
$ git commit -m "Introduce end-of-line normalization"
|
$ git commit -m "Introduce end-of-line normalization"
|
||||||
|
Loading…
Reference in New Issue
Block a user