git untracked files or directories are files that are not in the git index.
Questions tagged [git-untracked]
60 questions
0
votes
1 answer
Git : Untrack files without remove git cache
I try to ignore a folder with git update-index --skip-worktree command, but it cant mark to S (skip-worktree) files under the folder until i remove git cache. git rm -r --cached
When i check files with git ls-files -v all of them still mark with…

erkan demir
- 1,386
- 4
- 20
- 38
0
votes
1 answer
Untracked files automatically updated, used git stash, and the changes have followed me since
For reference: My master branch is essentially a dead branch (I haven't visited in months), all deployments are made from my dev2 branch. Checking out to master was an error of natural reflex since my other projects all use master.
For context: I…
0
votes
0 answers
Why does git checkout change mode of untracked files to read only?
And more importantly, how can this be prevented?
echo tracked > tracked.txt
git add tracked.txt
git commit tracked.txt -m "tracked"
echo untracked > untracked.txt
ls -l
total 2
-r--r--r-- 1 My Name 1049089 8 Dec 2 09:17 tracked.txt
-rw-r--r-- 1…

gitrdone
- 21
- 1
- 5
0
votes
2 answers
Git merge untracked files
When doing a git-merge or git-pull with local untracked files that have been added remotely, the following error appears
error: The following untracked working tree files would be overwritten by merge:
Many questions have been asked about this, but…

xeruf
- 2,602
- 1
- 25
- 48
0
votes
1 answer
I deleted 2 files on my github file but not commited. But when i write git status, it says deleted
enter image description here
I dont want to delete those files. What should i do? I scratched my github username beacuse of my school.

Ezgi
- 1
0
votes
1 answer
Git commit showing untracked files in different directory altogether
First post in here for me. Usually decent at figuring out git issues but this one really has me stumped.
I put the git remote of a directory into a new directory. I then went to the original directory I had the repo cloned into and removed the…

Joe
- 1
0
votes
1 answer
git clean -fd not removing a folder
I have a GIT repository in a ~/foo folder. Now, created a bar/ folder there with some contents, under ~/foo/public/bar/. It is correctly recognized by GIT as untracked:
~/foo git status -s
?? public/bar/
I've always used git clean -fd to delete…

Robo Robok
- 21,132
- 17
- 68
- 126
0
votes
1 answer
How do I remove untracked directory tree (submodule / sub-repository) from main git repository?
For the life of me I can't seem to 'remove' an untracked sub-module/directory from the main git repository. I've tried various syntaxes, but I keep getting the 'pathspec' error stating there was no match, even though the folder is there in plain…

skeetastax
- 1,016
- 8
- 18
0
votes
1 answer
Git Issue: Can't removed "untracked" sibling directories from git status
I have started a new project in a new repo with two other projects and repos in the same local directory. Git status keeps showing me these other directories (i.e. ../OtherProject) as untracked items. I can't seem to removed them either in…
0
votes
1 answer
Git untracked file in new feature branch
I was working on a feature branch locally, and added a new folder with a file in it. I then committed these new files along with my other changes and pushed to a remote server.
I am now working on a different feature branch from master; however the…

watermelon123
- 357
- 2
- 3
- 12
0
votes
1 answer
All my personal files are listed as untracked files
I don´t remember but I must have done git init in my personal file (C:\Users\lucas).
I want to upload a project to github. That project is in C:\Users\lucas\Desktop\project but for some reason VSCode tells me that every file in C:\Users\lucas are…

Lucas Gonzalez
- 25
- 4
0
votes
0 answers
git shows untracked files on master but not on develop
I'm currently working on a branch made from develop branch, but theres a team that was working and commiting their work to master branch, so I added and commited all my stuff to my working branch.
I decided to merge master into develop, so I changed…

Dieguinho
- 758
- 2
- 14
- 31
0
votes
2 answers
Git status command - entire computer under untracked files
I'm quite new to github. Today I was in the path Desktop/Projects and I made a new directory in it:
mkdir CV
inside it a ran the command:
echo "# CV" > README.md
because I wanted to create a Readme file inside the CV directory and just writing…

Gtchweb
- 49
- 1
- 8
0
votes
2 answers
Remove all Untracked from files
Today I tried a bit with github and uploading. I did a test upload to git which did work. Now, when I start a new project I see everywhere an U after my file. How do I get rid off all the U's without deleting the files?
All my code is in the…

aftershock
- 69
- 13
0
votes
1 answer
PhpStorm incorrectly showing files as unversioned in Git
In a project I have that is under Git PhpStorm is showing a bunch of files that it states are "unversioned", however Git disagrees.
Running:
git ls-files . --exclude-standard --others
...from the Terminal shows nothing.
PhpStorm version…

Brett
- 19,449
- 54
- 157
- 290