What is a good method to update a GitHub repository without manually copy/pasting the entire repo into the Blender addons folder when developing Blender add-ons?
3 Answers
I just symlink the addon file or folder into the scripts/addons
directory so it updates automatically when you switch branches, etc.
I made a simple Python script that is callable from the terminal: https://github.com/torrinworx/Blender_Dev_Tools
You can pull a repo into the Blender addons folder, or push the Blender folder to a GitHub repo. You can also delete the Blender repo. Instructions for operation are in the readme file at the above link.
I struggled developing Blender add-ons in the beginning, I hope this tool helps the community!
I use Visual Studio Code (VS-Code) with Blender. (A tutorial for getting started).
VS-Code has excellent github integration (A tutorial for getting started). It's also a reasonable code editor that is open source and portable to many operating systems, especially Linux and Windows. I use it on the later.
My workflow is to maintain and edit the add-on's code using VS-Code; use VS-Code / github integration; and use the Blender integration tools to run the add-on in Blender from VS-Code.