Alternative - use subtree
This approach lead to
The following instructions publish company_model
in your_project_folder’s ScopeFoundryHW
├── your_project_folder
├── ScopeFoundryHW
├── company_model
├── company_model_hw.py
├── Licence
├── README.md
# optional
├── company_model_dev.py
├── company_model_test_app.py
├── ** more files/directory that make your hw component work
**
If you like to adhere to this template use ScopeFoundry.tools
Publish your hardware
Initialize your main repo if you havent already, and make sure you have commited everyting in
company_model
folder.Create the target repo on GitHub by prepending
HW_
to the package- sign-up/log-on on GitHub with your
USER_NAME
- New (repository) to make a public repo named
HW_{company_model}
3. note the repo url for the next step
- sign-up/log-on on GitHub with your
Now you can push your code
git subtree push --prefix ScopeFoundryHW/company_model/ https://github.com/{USER_NAME}/{HW_company_model}.git main
Updating to published plug-ins
If it is not your repo or you do not have write access:
- Sign up/log on github with your
USER_NAME
- fork the original repo
Now you should have github repository url of the form: https://github.com/{USER_NAME}/HW_{company_model}.git
Here we push to the branch {MAIN}
by
cd
to/your_project_folder
git init
Push your changes (that were made to
ScopeFoundryHW/company_model/
)git subtree push --prefix ScopeFoundryHW/company_model/ https://github.com/{USER_NAME}/HW_{company_model}.git {MAIN}
If you’d like to share your updates with the original owner then create a Pull Request on GitHub.
Updating from published plug-ins
git subtree add --prefix ScopeFoundryHW/company_model/ https://github.com/{USER_NAME}/HW_{company_model}.git {MAIN} && git checkout
Discoverable on this page
This page periodically crawls GitHub for HW_* repos. Thereby, it considers users/organisations that forked the ScopeFoundry Repo. So this page will find your hw repo if
- you fork ScopeFoundry/Scopefoundry
- followed the instructions above
Where to Find Out More
This tutorial code is available in the HW_random_gen repository.
For questions about this tutorial or ScopeFoundry in general, please visit and post on the ScopeFoundry project mailing list and forum.
For source code of all ScopeFoundry projects visit our GitHub page.