![]() Github for Unity should alert to the presence of any git-altering files when assets are added and allow the user to decide what to do (or have some settings to auto manage) and also allow an interface to list present submodules, add submodule from remote repo, update, and switch the branches of a submodule.Īctually this would also be nice in Github Desktop. Seems like Github for Unity should be a bit more informative about this so it is easier to use for the non-coders in teams. Apparently only way is through command line. I was confused for a while but then I checked in github site and it appeared as submodule, with no obvious way to manage. When I cloned my project on another computer using github desktop, the folder in Assets was gone and of course the project was broken. git configuration files in it and it registered as a submodule (invisibly). Unknowingly I added a folder of 3rd party code into my Unity project that had some. Hello, I would also really appreciate better submodule support. In summary - people who don't know how to use git via the command line should be able to interact with projects that use submodules as long as they don't want to interact directly with the submodule code. All you have to do is navigate in Command Prompt to the folder where your repository is located and start to git it. Now the Git.exe linked to GitHub Desktop is available in Windows Command Prompt. It should be possible to discard accidental changes to local files within a submodule (it would be nice if a commit was possible too but that's not part of my use-case) In Edit Environment Variables, paste both paths.Pulls should update submodules if they've been changed externally (i.e.Pulls should checkout newly added submodule code.gitmodules file which stores the submodule version when the submodule was added. What prevents for a submodule to be updated is the. ![]() This way, the submodules code wont automatically be updated if the submodules repository is updated. nothing should ever appear in the list of local changes (Github desktop fails at this) Upon running git submodule add command, the submodules code is added to the repository. Assuming they never edit files in the submodule - then the submodule should be pretty invisible to them i.e.I don't mind if adding and updating submodules requires me to use the shell - but other team members shouldn't have to if they don't touch the submodule contents. macOS users can install using Homebrew package manager: brew install -cask github. So - would you expect common sense basic workflows using submodules to work? I'm mainly interested in being able to use submodules in a project with non-coders for 3rd party code. There are several community-supported package managers that can be used to install GitHub Desktop: Windows users can install using winget c:\> winget install github-desktop or Chocolatey c:\> choco install github-desktop. If the repository for your GitHub Pages site contains submodules, their contents will automatically be pulled in when your site is built. Right now we don't do anything special with submodules
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |