Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Using GitHib for projects?
Author | Message | ||||
karlelch Senior Member Joined: 30/10/2014 Location: GermanyPosts: 172 |
Hi, seeing great projects like, for example, this one with the ArduCam spread across several threads and really hard find (again), I am often wondering why not more people use platforms like GitHub? I am just curious. Best Thomas |
||||
thwill Guru Joined: 16/09/2019 Location: United KingdomPosts: 4043 |
I'm a big fan of git personally, but (with some reason) it doesn't so much have a learning curve as a learning vertical ice sheet. And using GitHub or GitLab without knowing something about how git works is a good way to make a mess. Best wishes, Tom Edited 2023-08-28 03:52 by thwill Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3150 |
Check out the Photos thread to get an idea of the typical age of the folks here. This particular old dog has had trouble jumping through the github hoops (but those who have become familiar with it through daily work find it very helpful). PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2129 |
I never got anything to load/work off git hub except linux terminal script-- monkey see from a guide. it's free though |
||||
Gizmo Admin Group Joined: 05/06/2004 Location: AustraliaPosts: 5078 |
I loath Github. A simple function or piece of simple code becomes a behemoth of unnecessary folders and files. I recently needed a function to swap out words in a DOCX file, every search pointed to a github library to do just that. This library contained over 1000 files in a mess of folders. Unfortunately, thanks to the likes of Github, this is the way a lot of new programmers work today, everything is a library on Github. Bloatware. I ended up using chatGPT to help me replace this library with about 10 lines of code. Glenn The best time to plant a tree was twenty years ago, the second best time is right now. JAQ |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9308 |
LOL!!! Well, quite. Smoke makes things work. When the smoke gets out, it stops! |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9126 |
I know Tom despairs of my approach but you can use github as a simple file dump. I just create a project using the browser (repositories/new) and then upload files with the upload file button. When you want to update just use the upload file again and it overwrites what is there. I never bother with releases or use any github application. If you want a file off github just use the code/download zip button. I do all my versioning locally and never reserve files on github or anything like that. I never ever use or look-at the moronic github differences mechanism but when you upload files like I do it automatically creates it. Used this way github is trivial and achieves the objective of making the files available to the world as well as being some sort of offsite backup for free Edited 2023-08-28 17:22 by matherp |
||||
karlelch Senior Member Joined: 30/10/2014 Location: GermanyPosts: 172 |
Yes, this is what I mean. For simple project, that's exactly what I use. And it is easy to add documentation and keep it up to date. For more complex projects, in particular, if other people contribute, I use the GitGub tool for Windows, which hides a lot of the complexity. |
||||
damos Regular Member Joined: 15/04/2016 Location: AustraliaPosts: 63 |
Github really takes the pain out of version control and works brilliantly on its own, although it can be painful in a team environment, although SVN and VSS are also really annoying for it. You can Github a single text file as a project, so it doesn't need to be complex at all. What Github does is version control, which is brilliant when you accidently break something and can then see every version of the file you ever created. It also allows you to create branches so you play around with something but not commit it to the main branch, so you can experiment without breaking things. Later on you can decide that you like feature X of the branch but don't want anything else, and it allows you to merge just that feature into the main project. |
||||
damos Regular Member Joined: 15/04/2016 Location: AustraliaPosts: 63 |
If you use an IDE like Visual Studio Code (and if you are not, why not? It is free, works on Windows, Linux and Mac and is way better than Notepad++ or other editors). You can install the plugins for Github and you can then see a list of all the files and folders in your project and what has changed. When you click on a modified file it does a side-by-side comparison between to 2 files showing the changes. It also allows you manage Github pushes and pulls from inside the environment. Once configured, you tend to forget about Github and the files just appear in your environment. When you go to the big end of town and hook Github to Azure, it becomes completely amazing. Just merely pushing your changes to your branch can configured to deploy on the cloud instantly. |
||||
retepsnikrep Senior Member Joined: 31/12/2007 Location: United KingdomPosts: 131 |
I wanted to top myself after being forced to try and use GitHub by a forum user on another site who has a project running on it. He kept going on about forks and other stuff and then my head exploded. I gave up completely and agree with the others who say the learning curve is far too steep for normal humans. Gen1 Honda Insights. |
||||
JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 3802 |
That's not really github but someone using it a particular way (such as an IDE which generated a load of code & the user just uploaded the whole lot). There's never going to be a fix for a lazy user uploading way too much. Happened before github... John |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6798 |
Oh, I love it's super-easy and incredibly intuitive web interface! Not. I've never even attempted to figure out how it works. Not really worth it for the very few projects I play with. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 3802 |
That's fair - it's designed to cope with potentially large/changing projects. It's not really meant for just uploading one or a few files. (It'll do it, but it's overkill and takes "a bit" of messing around just to do that.) There are (or were) simpler sites where you'd just dump files and/or do very simple revision-handling. I suppose when someone wants just a function to do some specific thing then github is probably not the place to look first. The clue is "git" in "github" - it's intended for those who choose to use git. John Edited 2023-08-31 00:16 by JohnS |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2129 |
my freebasic on rpi had this in the build but not a clue cd fbc git pull make sudo make install |
||||
JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 3802 |
I think that's missing some context / other code (shell file(s) probably). John |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2129 |
It was a guide to freebasic on rpi and there was a lot and that was the end bit that mentioned git. I hate linux, the nice ide hides needs rocket science imho |
||||
LeoNicolas Guru Joined: 07/10/2020 Location: CanadaPosts: 479 |
I've been working with git repos for more than 10 years. All my relevant code is in GitHub. @stanleyella git is multiplatform, is not a Linux thing. git pull is just to fetch the data from the remote repo and rebase it in you local branch. However it will only work if your source has been cloned from the remote repo or been properly initialized with git initEdited 2023-08-31 15:13 by LeoNicolas |
||||
karlelch Senior Member Joined: 30/10/2014 Location: GermanyPosts: 172 |
Yes, mine, too. Also for small projects, such as this. Having all relevant parts with basic documentation in one easily accessible place (safe from disasters that can stike the own PC), is very satisfying - at least for me. For this, the web interface is often sufficient. In any case, I think this was my most successful post so far Interesting discussion. Best Thomas |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6798 |
Sixth post down on this page might interest those who would like FreeBASIC on a Raspberry Pi. I've not tested it, just found the link. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Print this page |