[chirp_devel] Old Newbie question
Dan Smith
Wed Sep 6 15:27:41 PDT 2023
Hi Paul,
> I haven't done any formal software development/maintenance for years
> (I'm retired), and am only vaguely familiar with git (I can download
> code with it). Yeah, I'm from the dark ages of RCS, CVS, SVN, etc.
Me too, you're in good company, don't worry :)
> I've got code to add the Retevis RT20 to the existing radtel_rt18.py
> driver. There's an existing (5 year old) request to add the RT20 in
> the system (#6067). I added to the existing request to indicate I've
> got working code, and uploaded a .diff file (yeah, nobody does that any
> more, but I didn't want the work to get lost...).
>
> Is there a brief tutorial on how to submit a proposed change with git?
It's not just git, but github you need to get familiar with. The good news is that there are approximately billions of github tutorials out there. So find one that suits your learning style (text, video, etc) and follow it. It's the same for CHIRP as any other github project.
Roughly it will be:
1. Fork my repo on github. This creates a copy of the repo for yourself.
2. Clone it to your machine with git
3. Create a topic branch from master, make your changes and commit them
4. Push that branch up to your repo
5. Create a pull request from your branch to my repo and wait for me to merge it or complain about something
There's a command-line tool called "gh" which automates a lot of that process for you. Unless you're already used to using git exclusively, I'd spend a few minutes getting that and using it. I think you can probably fork, checkout and submit a PR completely from that tool if you want.
--Dan
More information about the chirp_devel
mailing list