iOS Files app’s copy function won’t copy dot files or folders like .gitignore and .git

pre

you can copy files and folders in the iOS built-in Files app.

issue

But I found it won’t copy the dot files like .gitignore files, .git folders, which will cause some promlems.
For example, I have a git repository Repo_ain another root git repository Repo_A. I have a workflow about checking the Repo_a status and the execute git add --all in it, in the Repo_A I always use git add -u to avoid adding untracked files into the index. However when I copy the Repo_a into Repo_A, then try the workflow, I found the whole untracked files in the Repo_A has been add to the index as the execution results ought to have only work inside the Repo_a, because there is no .git folder in the Repo_a and it’s not recongnised as a git repository due to the copy function in Files app didn’t copy the .git folder.

Solution

So be careful with it, if you want copy the dot files in a folder in the Files app, maybe you could do it after zipping it.