The past week , I have been working on refactoring fields/methods namings for consistency in the Tong Hin application .
As I refactor the codebase , git is able to handle the new changes automatically , but it will not fit for every ideal scenario . The changes I have made caused breaking changes , some may include deleting or modifying a required field or method . Large refactors and major feature additions are good , but remember that basic communication is needed in a team before changing any fields/methods as some of them are used in separated projects and may cause merge conflicts.
Another mistake that i made was using git push –force way too often than should , and not realizing it will generate problems to everyone else . To prevent this , try not to reset or rewrite history in a branch that someone that might have already pulled without understanding the consequences .
Lastly , always remember to merge a pull request from another working branch . Even git offers powerful tools to resolve changes , but conflicts will most likely happen in a team environment when two separated branches have made edits in the same file .
That is all for this week .
