I have just cloned a repository in my local computer. Then I’ve created inside the folder a new file. When i run ‘git st’ the new file does not appear, not even as an untracked file.
How can i list new files I created inside my project, to add them after?
Normally, you should see the file unless
git status).gitignorepresent in the folder holding the file.gitignore.git/info/exclude.gitignorefile (check withgit config --global core.excludesfile)To check whether your file is ignored by one of the
ignorefiles, typeThis will also show ignored files.
Solutions for the five cases:
git add folder_name. This will add the folder and all of it’s files (unless they are ignored) to the index..gitignore, modify that file so that your file to be added shows up when typinggit status.