You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tutorials are linked via a git submodule which is defined here, but there is an incantation for adding them that I don't remember at the moment, but here is the PR when I set things up that way.
The .gitmodules setup seems straightforward. Once we have a tutorials OHW23 branch, we'll copy and adapt the ohw22 block to this:
I've added the OHW23 branch, but its currently pretty empty.
By incantation, I meant git submodules ... in the command line that sets up the .gitmodules entry and actually syncs it down (and updates it as we bring in new tutorials). I believe there is a bunch of info that gets added to .git/ to track the current commit, and .gitmodules is just for higher level info.
➜
tldr git submodule
git submodule
Inspects, updates and manages submodules.
More information: <https://git-scm.com/docs/git-submodule>.
- Install a repository's specified submodules: git submodule update --init --recursive- Add a Git repository as a submodule: git submodule add repository_url- Add a Git repository as a submodule at the specified directory: git submodule add repository_url path/to/directory- Update every submodule to its latest commit: git submodule foreach git pull
I've added the OHW23 branch, but its currently pretty empty.
Thanks!
By incantation, I meant git submodules ... in the command line that sets up the .gitmodules entry and actually syncs it down (and updates it as we bring in new tutorials). I believe there is a bunch of info that gets added to .git/ to track the current commit, and .gitmodules is just for higher level info.
So, we would run git submodule ... locally and push to the repo to make it work, or just if we want it to work locally? I don't think I follow. What exactly do we need to, where, and when?
So, that's all we need to do, and just once? Should I run it locally, update the tutorials-index pages to OHW23 (to be a stub at this point), and push it to PR #261?
Activity
abkfenris commentedon Jul 27, 2023
I've added the OHW23 branch, but its currently pretty empty.
By incantation, I meant
git submodules ...in the command line that sets up the.gitmodulesentry and actually syncs it down (and updates it as we bring in new tutorials). I believe there is a bunch of info that gets added to.git/to track the current commit, and.gitmodulesis just for higher level info.abkfenris commentedon Jul 27, 2023
Thanks, tldr
Or for a ore definitive source https://git-scm.com/book/en/v2/Git-Tools-Submodules
abkfenris commentedon Jul 27, 2023
Or my shell history remembers last year
git submodule add -b OHW22 https://github.com/oceanhackweek/ohw-tutorials.git ohw22/tutorialsemiliom commentedon Jul 27, 2023
Thanks!
So, we would run
git submodule ...locally and push to the repo to make it work, or just if we want it to work locally? I don't think I follow. What exactly do we need to, where, and when?emiliom commentedon Jul 27, 2023
🤯 That's a long shell history! Great.
So, that's all we need to do, and just once? Should I run it locally, update the tutorials-index pages to OHW23 (to be a stub at this point), and push it to PR #261?
abkfenris commentedon Jul 27, 2023
We'll also need to
git submodule update ohw23/tutorialsas they land to get them included, but the add only needs to happen once.