B
B
Barrakuda742018-04-06 14:16:04
git
Barrakuda74, 2018-04-06 14:16:04

Filenames in GIT commands - case sensitive or not?

create a file for example README.txt
then write
git add readme.txt
the command is successful. Those. git seems to have seen the file, otherwise it would have thrown an error a la:
fatal : pathspec 'readme.txt' did not match any files But then if we commit or just check the status, we
see Untracked files: README.txt
, why didn't it throw an error on "git add readme.txt" then?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vaut, 2018-04-06
@vaut

Under linux, they are definitely case-sensitive.
It cannot be otherwise. Since it is possible to create two different files README.md and readme.md

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question