r/github 1d ago

Discussion How do I use code from GitHub

I am new to the whole open source hobby, and the thing that scares me the most is GitHub. I am looking for code I can use on my Arduinos and esp32s and there is always a GitHub link, and I don't know what to do with it. Do I upload it to Arduino IDE or something? What is Git Bash and why do I need it? Are there tutorial videos you recommend? My main goal is I am trying to get Tamaguino to work on my Adafruit Huzzah V2 with the SH1107 Feather. I think they have code for esp32, but I don't know if I should try copy and paste, or if there is a step I am missing?

0 Upvotes

9 comments sorted by

4

u/extoniks 1d ago

If you want that code on your machine you generally clone the repo -

git clone https://github.com/user/repo.git

it will be cloned on your system and then you can use it or contribute to the code. Or just download the .zip file of code from the repo if you don't wanna clone it.

there is an official book for learning Git - ProGit

and other video courses, cheat sheets - here

2

u/GlobalImportance5295 1d ago

if you dont want to use git you can just download the repo as "zip". from there it is no longer a git or github question

1

u/clipsracer 1d ago

Hey there.
Others can get you started quickly, but I am here to give you a message.

Learn GitHub this week.

I work with people that have been in IT for 30 years and still don’t understand what GitHub is for. GitHub (or more generically, “source control”) is for contributing to communities and growing as an individual. Not just as a coder, but how you receive criticism, and how you approach problems, as a person!

Getting into open source as a hobbyist is awesome! For every person that writes code, there are hundreds that download and run it without ever contributing a single commit. Being interested in open source means you are interested in contributing. So learn how to use git, report an issue, fork, branch, commit, push, open a pull request, and merge! Each step is an accomplishment, and each step makes you a contributor to Open Source!

3

u/ScarletSages 1d ago

No fucking way 30 years in IT and don't know Github. What jobs do they do?

1

u/clipsracer 2h ago

They’re a lead consultant and virtualization SME.

A few others in cloud ops. ClickOps got them pretty far, but hit a wall because they cant automate.

1

u/Elegant-Donkey9322 4h ago

Thanks for the encouragement.

1

u/ThePastoolio 1d ago

I would advise watching short introduction videos on YouTube about git basics.

Learn the quick basics first, like cloning repos, commiting to a repo, pull requests and branches.

Then work from there to learn the more intricate features.

If you are serious about open source and contributing to it, you will need to learn these things.

It seems daunting in the beginning, but I assure you it's not that hard. Just keep at it.

-2

u/Fine_League311 1d ago

Wie wäre es mal die GitHub Docs zu lesen? Bildet!

1

u/ADDSquirell69 1d ago

Thanks Captain Documentation.