Questions tagged [git-ls-files]
42 questions
0
votes
1 answer
Should git ls-files list the files being tracked by LFS (git lfs ls-files)
I'm hoping this is a simple question - will git ls-files list the files I see from running git lfs ls-files? Or, are they managed and hence listed separately.
This is the first time I've used LFS, I've an error appearing but before I dive into that…

ian
- 12,003
- 9
- 51
- 107
0
votes
2 answers
git ls-files exclude files in a directory
I'm trying to run git ls-files and exclude a specific directory from it. Does the --exclude flag only exclude file patterns, and not directories?
git ls-files -x */util/*

user1795832
- 2,080
- 8
- 29
- 50
0
votes
1 answer
Why do git ls-remote and git ls-files fail with some relative paths?
Suppose I have a git repo at ~/dev/company/products/company-common. From several other filesystem location I try to execute ls-files or ls-remote on that repo. All work, except for the last one. What could be a reason the last one doesn't…

Confusion
- 16,256
- 8
- 46
- 71
0
votes
1 answer
git lfs ls-files -I filter doesn't work with non-ASCII folder names
git lfs ls-files -I filter seems not to work with non-ASCII folder names even when the filter is passed in octal encoding, as can be confirmed with the bash script below:
mkdir LfsTestRepo
cd LfsTestRepo
git init
git lfs -v # git-lfs/2.7.2 (GitHub;…

Eugene Podskal
- 10,270
- 5
- 31
- 53
0
votes
1 answer
Searching in history of Git repro for specific files
How do I search in the history of my git repository for specific filetypes? (for example *.log)
I know I can search with ls-files in the current state or in a specific commit, but I want to search in all commits. This does include files that have…

Gerrit
- 1,579
- 5
- 16
- 23
0
votes
0 answers
git add wont stage files - git cache confused?
I have a feeling my git cache is getting confused fairly often. I work on Mac and use both git at terminal and SourceTree.
I add or modify few files but I often notice that even files I have never modified in any way show as staged. This is very…

pixel
- 9,653
- 16
- 82
- 149
0
votes
1 answer
Dulwich cheat sheet: how to reproduce "git ls-files"?
Dear community members,
I'm working on a code analysis system and would like to replace calls to CLI Git application with Dulwich module. As the first step I need to replace "git ls-files" command with Dulwich equivalent. I did it in the following…

Wladd
- 21
- 4
0
votes
1 answer
Is there a way to concretely know what files have been staged in the index matching the current commit?
Whether we use checkout or reset, when we jump from commit to commit, the index keeps matching the now-current commit.
When I ask people how to see what files are staged in the index for the now-current commit, they tell me: git ls-files -s
But git…

Mohammad Ali Asgar
- 734
- 6
- 16
0
votes
1 answer
How can i resolve load issue on dataSources.ids?
Everytime I switch branches in Intellij Idea I got this error message,I am a newbie on Intellij IDEA.Anyone one to point me in right direction please?
Failed to load data sources: .idea\dataSources.ids is corrupted. Backup copy…

Danny
- 45
- 1
- 8
0
votes
1 answer
Diffrence between $(git ls-files -s | wc -l ) and $(git ls-files -s >out && wc -l
Are the two commands $(git ls-files -s | wc -l) and $(git ls-files -s >out && wc -l

pratham_pc
- 1
- 1
-1
votes
1 answer
Git 'ls-files' command showing a weird non-existent string as a file on Windows, how to analyze and delete it?
I ran git ls-files in my GitHub wiki repo and got the strangest file, listed actually as a string ending with ".md". The file, as far as I can tell, does not even exist.
it certainly does not show in Windows Explorer under any attribute (when…

playmobilmeister
- 59
- 6
-1
votes
2 answers
`git ls-files` includes unmerged files thrice
For example:
$ git status
On branch master
You have unmerged paths.
(fix conflicts and run "git commit")
(use "git merge --abort" to abort the merge)
Unmerged paths:
(use "git add ..." to mark resolution)
both modified: …

Dmitry
- 3,625
- 2
- 30
- 28