Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by Samdeman22 · Dec 18, 2015 at 01:07 PM · visual studiogitgithubsource-control

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.

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Salanyel · Dec 18, 2015 at 01:12 PM 0
Share

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.

avatar image Samdeman22 Salanyel · Dec 18, 2015 at 01:16 PM 0
Share

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).

avatar image Salanyel Samdeman22 · Dec 18, 2015 at 01:23 PM 0
Share

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 ?

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

34 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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

Git on Visual Studio doesn't sync Unity plugins 0 Answers

How to exclude paid assets from git tracking? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges