The final Git history should reflect your work, not the way you worked.
It’s highly likely that, as time goes by, developers will stop caring about the source code history as the powerful resource it is. When commits started to reflect one’s workflow rather than the work done itself, the history turns into a mess of both meaningful and meaningless logs, hard to navigate through and undo changes (since commits are “checkpoints” of work). Why a clear history matters ¶Īpart from facilitating code reviews, since reviewers could grasp the context of the changes right at the first glimpse, a clear Git history is healthy for the project. If you want to know how it’s changed, it’s just a matter of checking out a particular commit. That history communicates in a clear way what in the codebase has been changed in order to get the improvements done. How about the following history? Refactor event listener for form fields However, a commit is applicable when you have a meaningful, self-contained batch of work to log to the history – and updating Jest snapshots is not it. Indeed, committing often to a branch is a good practice and commits are supposed to be low-level rather than huge. It just that it takes time to visualise that. It seems like a lot, when actually those improvements are simply 1) fixing a bug with event handling and 2) introducing a minimal style to them.
Update form to handle onChange event for autofill
Fix onChange event and add minimal design in form
This is the feature branch’s commit history you get in the Pull Request: Resolve merge conflicts At some point you, also a programmer, are asked for a code review. Your teammate worked on a few improvements in all forms of the company’s website. Your prior material should now be available when you restart Origin. If an issue persists, you may need to clear this cache folder and redownload any material again.Working Better with Git for a Clear History
Right-click the cache folder and choose Delete.If you do not want to back up your files:.Rename this folder to something like cache.BAK.Right-click the cache folder and choose Rename.If you have previously downloaded material that you would like to back up:.On your computer, navigate to the following directory: C:\ProgramData\Electronic Arts\Origin.