Visual Studio / Git / Unity - All files and folders I add are going into untracked files - why?
So I set up my git repo as the following indicates: http://stackoverflow.com/questions/21573405/how-to-prepare-a-unity-project-for-git including the use of the gitignore specified there. However, when I create new files within the assets folder, the files immediately go to "untracked files" in the changes section of the git extension for Visual Studio. They should be going into "changes", instead.
I don't know what you're calling "untracked", but if it's a file without any icon, that means you just forget to do a Git add on your file in order to save it in the git project.
I personnaly use TortoiseGit, and you can add the files with Right click>TortoiseGit>Add... in the context menu when you right click on a file.
After that, you can commit these files on your repository.
I'm not using the github desktop app. I'm using the github extension in Visual Studio, whenever you make changes they are sorted into three sections: included changes, excluded changes, untracked files. $$anonymous$$oving the changes to included changes is equivalent to doing "git add". I always thought it was the case that when you added things to directories that aren't ignored they get included (this used to be the case in past unity/VS/Git projects).
I can't help you with the VisualStudio git extension. From what I've read on your message, I understand that you figure out how to solve your problem ?
Answer by anamta93 · Apr 06, 2018 at 09:46 AM
# ===================================== #
# Visual Studio / MonoDevelop generated #
# ===================================== #
ExportedObj/
*.svd
*.userprefs
*.csproj
*.pidb
*.suo
*.sln
*.user
*.unityproj
*.booproj
*.htm
*.apk
Builds/
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/Assets/AssetStoreTools*
# Visual Studio 2015 cache directory
/.vs/
# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb
# Unity3D generated meta files
*.pidb.meta
# Unity3D Generated File On Crash Reports
sysinfo.txt
# Builds
*.apk
*.unitypackage
add a file named .gitignore and add it to your git root, and copy paste this in it, then it'll only push needed stuff
Your answer
Follow this Question
Related Questions
How to get rid of unity lockfile 3 Answers
Can't upload project to GitLab 2 Answers
Scripts won't update in editor after changing them in VScode 0 Answers