Work with branches. So you can work on different features.
https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging
and
https://laracasts.com/series/git-me-some-version-control/episodes/5
Summer Sale! All accounts are 50% off this week.
I'm wondering what is the best way to make GIT commits with incomplete features. Most of my workflow seems to involve hopping from different parts of the code and working in an almost ad-hoc fashion.
Let me explain my question by illustrating through a concrete example:
I start to write a javascript polling function that calls the server for a JSON response. I notice that the JSON response is malformed..
I work on the PHP server-side code to correct the JSON. I notice that one of the Eloquent queries is sub-obtimal and change that..
I return to the JSON, but notice that the ID in my blade template is wrong, so I turn to that to change it and notice the HTML needs a bit of cleaning up so I start on that ..
I need to go home :) I want to commit my work because:
but I've started working on 3 different features. What commit message do I leave? Should I commit after each of 1, 2 and 3 even though they are unfinished tasks?
Please or to participate in this conversation.