I was wondering if there are other folks out there who are at war with git.
Everytime I want to do sometting I ended up googling the right commands. Often the results I’m using are not successful and they have to be adapted to my current setup with OH.
So I would like to start a How-To specifically to the OH binding development. IMHO for a contributor there are only a few use cases that need to be documented:
create your own branch (fork the current openhab/openhab project) (via github.com web)
clone it on your local machine (“git clone ‘your repository’”)
do some development cycles (“git commit” and “git push” to your repository fork, right?)
update your fork with new developments from the main branch (what’s the git command there?) then do 3.
create a pull request with your binding (via github.com web) => do more bugfixing (like 3.)
wait for feedback from maintainers
incorporate feedback into your branch (‘git commit’ and ‘git push’, right?). Do that several times til finished
wait for the final feedback that your binding will be accepted “As-is”. So you have to squash all commits into one (which git commands?, ‘git rebase -i origin/master’) and then?
perhaps update fork with new developments from main branch (more ‘git commit’ and ‘git push’?) and then again squash all commits into one?
So “Masters of git”, can you please help? Change where changes are needed, insert where necessary and correct where things are wrong.
Thanks Ben, I tried that, too. But if you don’t know which buttons to press or which actions to take a graphical user interface doesn’t really help.
Even the git process in general is documented very well on the web. But I still fail to mirror that to the OH project especially as we have no write access to certain areas of the project (Which is a good thing ;-))
One thing that is often missing from guides like this is a discussion of the project’s culture and process. Everything listed above has a technical focus but I wonder how well received a new pull request is received when it appears out of the blue without an issue attached to it. Some discussion of how to broach the subject with @kai, @teichsta, et al to make sure the change is in keeping with the design and roadmap, and it is something that would be well received would be, IMHO as useful if not more useful than just the technical info.
None of these describe the specifics of how to handle git, though. But as we are following the standard open source processes, I also think that linking to some good pages on Github help should be sufficient - after all, this is nothing openHAB specific, but things to know when doing open source work.