git untracked files or directories are files that are not in the git index.
Questions tagged [git-untracked]
60 questions
1
vote
2 answers
Git is considering a checked in file as untracked, upon rename
In my git project, one of the developer changed the filename from all uppercase to CamelCase yesterday. in his feature branch and merged to master
I pulled the remote master. Now during any local git operation, git shows message for the file in…

ThrowableException
- 1,168
- 1
- 8
- 29
1
vote
1 answer
find lost `git write-tree`
I have a script that uses git write-tree to make up for the deficiencies in git stash, it works perfect unless I ctrlC the script.
[... other parts of script ...]
exec('git add -f .');
workingTreeHash=exec('git write-tree');
exec('git checkout -f…

figl
- 55
- 1
- 5
1
vote
1 answer
untracked files
~ master ?49 ❯ git status
> warning: could not open directory '.Trash/': Operation not permitted
On branch master
No commits yet
Untracked files:
(use "git add ..." to include in what will be committed)
~ master ?49 ❯
> nothing added to…

maievS
- 29
- 1
- 4
1
vote
1 answer
Is there a way to silently say yes to untracked file in arc patch?
When I arc patch I will get
You have untracked files in this working copy
Ignore these untracked files and continue (Y/n)
I dont want to delete the untracked files or put them into .gitignore. I just want to silently say yes. Is there a way to…

Justin Lin
- 673
- 1
- 6
- 15
1
vote
1 answer
Git - Have untracked files in online repository
I'm using git (bitbucket) to source control my linux configuration files. All the files are in the directory ~/.cfg/. Then I additionally have some local configuration files in ~/.cfg/local/ which are supposed to be different from machine to…

Mate de Vita
- 1,102
- 12
- 32
1
vote
1 answer
Add a submodule to each branch of a parent project
I have a project called channel, which has only one branch -- master. And I have another project called bigTest, which has four branches -- master, dev, stable, release.
Nowadays I want to add channel to the root directory of bigTest as a submodule…

Bryan YU
- 77
- 11
1
vote
1 answer
How do I remove unwanted, untrack directories from my git branch?
For some reason I have untracked folders in my git branch that have nothing to do with my current directory. They seem to be mostly parallel directories.
I have no clue why but I've tried to use git ls-files --others --exclude-standard >>…

ZST
- 39
- 1
- 6
1
vote
2 answers
git wants to add already tracked files
I have a repository on a pc with approximate size of 70GB and when I copied it (not clone, just simple copying) to my mac it shows that some files are untracked while they are already tracked.
When I added them, they appeared to be duplicated in the…

Basem Saadawy
- 1,808
- 2
- 20
- 30
1
vote
1 answer
Git ignore and untrack file [Yes I already readed the other posts]
I put some folders in my gitignore but as described in the documentation
A gitignore file specifies intentionally untracked files that Git should ignore. Files already tracked by Git are not affected
So I have to untrack some files and is where my…

Joao Vitorino
- 2,976
- 3
- 26
- 55
1
vote
1 answer
Git untracked/unstaged files right after clone
I make clone of a git repository, and right after it I get untracked and unstaged (modified/deleted) files in git status. Then I set fileMode=false for Mac, and several files go away from unstaged. But I cannot understand what to do with the others.…

Martin
- 337
- 2
- 17
0
votes
0 answers
Creating new local repository for a project in VS Code and getting all the files of parent repository as untracked
I usually create my repositories in a folder (let's call it "Repo-Folder") I created inside Documents.
I probably did something wrong with the terminal while trying to learn about GIT branches and merges.
Since that moment everytime i create a new…
0
votes
0 answers
How to delete an untracked file in GitHub when the clean comman does not work?
I have an untracked file that is not visible in the folder where it is suppose to be (not even when you select the option of show hidden files).
I tried to use the command git clean with all the posibles additions (-f, -f -f, -fx, -fX) and with -fd…

Gcer
- 1
- 1
0
votes
2 answers
Excluding .idea directory from project pulled by git clone
This seems like a very stupid and rudimentary question.
This seems to be due to my lack of understanding of git.
but I'm not good at English, it was difficult to properly search for an answer to this issue..
I tried to change my IDE from STS4 to…

gantodagee
- 43
- 3
0
votes
2 answers
how can i add one of my file in the .gitignore file?
I'm new to coding.
I learned about the .gitignore file today, and I succeeded in adding an unwanted file to the .gitignore file but could not add one file on the .gitignore file.
Untracked files:
(use "git add ..." to include in what will…

calipalm
- 3
- 4
0
votes
2 answers
how to commit changes in git with untracked files
When creating a project in GitLab, a file that has to be untracked was added (venv). I deleted it with git rm -r --cached venv and when I tried to commit these changes, I receive this message.
On branch master
Untracked files:
(use "git add…

taycants
- 1
- 2