Jaakko Seppälä wrote:Whe would I get some learning material for that?
There's nothing special you need to know for the combination of JavaFX and Git. Both are completely unrelated to each other, so if you want to learn them at the same time,
you should read different learning materials for Git and JavaFX at the same time.
The only learning materials I can recommend personally are:
Git User ManualLearn Git Branching
Sadly, I don't know of any good JavaFX tutorials. Maybe somebody else can help you with more guides.
And I was said that one should never commit non-workable code to git. How a programmer verifies that his or her code works well before the commit?
Hogwash. Commit early, commit often. It's better to have non-working code safely backed up in a remote repository than to run the risk of losing it.
However, there is a slight hint of truth to what you've heard: you should not have non-working code on the main development branch of your repository. If you want to commit code that doesn't work (yet), just create a new side-branch and commit your code to the side-branch.
If you don't know what that means, don't worry. First do the Learn Git Branching tutorial. And as long as you're working on the project by yourself and not in a team, you can also ignore the rule that you shouldn't commit non-working code to the main branch. Don't be afraid to experiment a little bit.