Questions tagged [git-untracked]

git untracked files or directories are files that are not in the git index.

60 questions
0
votes
0 answers

VSCode/Git over 5k new changes in BranchA: commit, then switch to BranchB and untracked changes show up

I am in the process of moving over a massive project from and old Source Control(TFS).The scenario is that I have made changes and additions to over 5,000 files in BranchA. I finished my changes and committed and synced the changes. I then change to…
kevindstanley
  • 272
  • 2
  • 6
  • 19
0
votes
1 answer

Can git restore untracked files after a bad pull?

I have an artist working in git for a class project. He had an asset in a working directory that was untracked. Before he committed the file, he preformed a pull to get the latest changes. An upper level folder must have been renamed and during the…
EHMAN
  • 1
0
votes
0 answers

kdiff3 mergetool produces untracked files

This is my first time using kdiff3 merge tool. I am using mac os, so I installed kdiff3 with homebrew with the manual below. http://www.ryanwright.me/cookbook/mac/homebrew/kdiff3 I have added merge.tool kdiff3 in my .gitconfig git config --global…
jwkoo
  • 2,393
  • 5
  • 22
  • 35
0
votes
2 answers

How to revert git clean

I have a git flow question. I've worked in my code on a local 'developer' branch in git. Then after work was finished I did an add of all changed files and after that I committed it on my local branch 'developer'. Then I wanted to checkout to my…
alfi92
  • 1
  • 1
  • 2
0
votes
2 answers

Git untrack and push

Situation: I untrack some files keeping them locally. Files are removed from the index and kept in working tree. Then I commit and push to remote. Files will be deleted from remote repository. What will happen to other people when they pull? Will…
Luke
  • 1,633
  • 3
  • 23
  • 37
0
votes
1 answer

Git track untracked files without adding to commit

I ran the command "git reset", but my unstaged changes were put into folders instead. I get something like the following after running git status: Changes not staged for commit: (use "git add ..." to update what will be committed) (use…
0
votes
0 answers

Git submodule now listed as untracked

I have a project with two submodules which I got from other people. I made modifications in both, but only one gets reported as modified and can therefore be staged for committing. The other one is in the "Untracked files" section. What did I break…
Charles
  • 988
  • 1
  • 11
  • 28
0
votes
2 answers

What causes a file to become untracked in Git?

I'm new to Git and have done some work on some .scss files which compile into .css files with Gulp. I've done my work and am now ready to push my altered files to Github. However, I see 3 untracked files when I do git status: a log, a .js and a…
MeltingDog
  • 14,310
  • 43
  • 165
  • 295
0
votes
1 answer

error: Untracked working tree file '.gitignore' would be overwritten by merge

What do I have to do to get around this "already up-to-date" error: I created a new local repo and tried to pull the remote master branch. It stumbled over my new .gitignore and errored out. I deleted the .gitignore (to be replaced with the…
doub1ejack
  • 10,627
  • 20
  • 66
  • 125
-1
votes
1 answer

Cant pull nor commit from git for untracked file

I was trying to pull from a repo and it gives me that message but if I run git status it says that my working tree has diverged and if I try to add and commit it gives me that error, (btw those files in the .gradle folder are in the .gitignore file…
-1
votes
1 answer

.vs showing as untracked file in git bash - what do i do?

I have recently cloned a repo from git and havn't yet made any changes, all I have done is open the code up in VS19. In git bash i typed 'git status' and there is an untracked file im not sure what to do with. Can anyone suggest please? $ git…
Reeves62
  • 139
  • 1
  • 3
  • 13
-1
votes
1 answer

Untracked System Files in git?

git has the following directories marked as "untracked files" Desktop/ Documents/ Dropbox/ Library/ I'd like for git to ignore these files. I tried using this article but was unable to resolve my issue. Does anyone know of a visual step by step…
user3574939
  • 819
  • 3
  • 17
  • 34
-2
votes
1 answer

Git: how to reset untracked files?

I made a commit, then changed some files in my project, then did git reset --hard HEAD. It said untracked files for all the files I had added. How do I resolve this so that those files are tracked and get reset along with the rest of the project?
gkeenley
  • 6,088
  • 8
  • 54
  • 129
-2
votes
1 answer

Where did all these untracked files come from?

$ git status On branch master Untracked files: (use "git add ..." to include in what will be committed) ../.android/ ../.bash_history ../.bash_profile ../.bashrc ../.gitconfig ../.lmmsrc.xml ../.viminfo ../3D…
-3
votes
1 answer

Why my files(photos) are in untracked files?

I added few photos to my project .png and .svg, and for some reason (not in ignore file) they are getting into the untracked files list. Is this any reason for it? How Git chooses the files to untrack?
Avi Moraly
  • 29
  • 2
  • 6
1 2 3
4