Here are the slides from a talk I gave on how to use Git and GitHub.
The slides cover everything from the basics of working with GitHub to the steps involved in publishing your code alongside a paper.
Sharing paper data and analysis code is now routinely expected.
Beyond that, managing code with GitHub has become an essential part of working on collaborative projects.
[Updated January 15, 2024] https://www.slideshare.net/slideshow/embed_code/key/vzfmHD9i6I15wI
From GitHub basics to code management and publishing your code with a paper from Hayato Yamanouchi
The same material is also available on my personal site.