Questions tagged [git-ls-files]
36 questions
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…
![](../../users/profiles/3453898.webp)
pixel
- 6,765
- 12
- 60
- 101
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…
![](../../users/profiles/9668773.webp)
Wladd
- 11
- 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…
![](../../users/profiles/2435774.webp)
Mohammad Ali Asgar
- 694
- 5
- 15
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…
![](../../users/profiles/7287260.webp)
Danny
- 35
- 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
![](../../users/profiles/6235771.webp)
pratham_pc
- 1
- 1
-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: …
![](../../users/profiles/615245.webp)
Dmitry
- 3,477
- 2
- 26
- 28