I'm currently having a bit of trouble with a project I'm working on in Unity. I'm still kinda new to both git and unity so some pointers would be great. One of my team members added the entire Unity project onto github, so every single file in the Unity project's directory is currently being tracked. There are two things I'm looking to do:
Currently, my team member has a dependency pointing to an absolute path to an external library on their machine. I changed the absolute path to the external library on my machine, but I do not want to push that change up (forever). I added it in the .gitignore file, but it still showed up since it was being tracked. I then did a
git rm --cached <file>
and successfully removed it from being staged, and pushed the folder to the remote branch I'm on. I'm worried that when I merge it with master, the file will be deleted from the master branch, so I was wondering if this was in fact the case?This is more Unity specific, but every time I open Unity, a bunch of internal files in the project change. I did the same process as above (git -rm --cached ) and when I pushed it up to my remote branch, they didn't show up. Same thing as 1. but will these folders be deleted in the master branch if I merge?
If the files do get deleted when merged, is there a way to prevent this?