Google Colab Tutorial: GitHub and Notebook Workflows for Healthcare Data
This is one of those things I'm writing because I didn't find exactly what I wanted when I needed the information.
If you are a healthcare worker, researcher, pharmacist, or data science learner trying to use Google Colab without setting up a local machine, this tutorial shows how notebook workflows can support reproducible healthcare data projects. For a structured course, see my LinkedIn Learning course on Google Colab Notebook Essential Training.
Key Concept
One of the most important things to know about working in Colaboratory or Jupyter notebook is that all your Linux shell commands work. You only need to prepend a '!' before your code line or put the magic command '%%bash' at the beginning of your code snippet.
What We'll Cover
We will set up GitHub, upload a file to a branch, then merge an upstream into GitHub fork - all from Colaboratory Notebook.
Set Up GitHub in Notebook Environment
Initialize Git
Working with Git Commands
Conclusion
I hope this answers some of your questions. These are very few out of the available git commands. Don't forget to check status often with !git status and whatever you need to know more, it's somewhere on the internet.