Back

Github Repo Tips?

Hi friends!I'm currently a epidemiology/biostats grad student and I've recently convinced my lab PI that it is important for the lab to have a github repo! I'm meeting with her in the next few weeks about it and I wanted to come in with a game plan of how to set it up, but also cultivate a culture of people utilizing the repo past my tenure in the lab. So a couple of requests:-- Does anyone have any tips for structures of github repos for labs - where we people are mostly doing their own research and not necessarily building packages? Should everyone have their own folder? Should specific grants have their own folders? Would love to hear whats worked for you!-- Does anyone have any tips on disseminating the git is good! Regularly commit your code! koolaid to people who are used to saving their code locally. Any tips for getting buy-in?Thank you!!
- I would make a lab Github and then add people to the organization. That way everyone has access (and read/write privileges) to the repositories related to their work and don' t have to fork to make edits but they can also have their own GitHub account where they can keep personal work. This way the two don't get mixed but you also have clear visibility into what others are working on and how they are doing it. It is also great for helping to on board new people because they can easily browse by project. - I love git and I love seeing what I'm doing and what other people are doing. It makes it so much easier to go back and look at what it used to be when you occasionally break something or lose a variable or make a change that breaks something somewhere else - it gives you really great history data and makes it easy to find changes. - Another big thing for me is that it means I can switch laptops and can pick up exactly where I left off easily. I once forgot my laptop charger at home but had both my personal and work laptops in my bag so I worked on one until it was about to dies, pushed up my code, pulled it down on the other and maybe lost five minutes.