3/10/2023 0 Comments Pull master git commands![]() ![]() Upon executing, a file with list of branches commits will be opened in your default editor, and there you will be able to squash/fixup your commits (as well as delete, modify commit message, reorder etc.) by changing a operation keyword in front of a commit in the list. This can be achieved by executing git rebase -interactive -autosquash master from your working branch. ![]() In such case, instead of creating new commits with messages explaining what you fixed and polluting the master’s history, you can squash original commit and amendment commits in a single commit after you’ve finished working on amendments. However, shockingly, instead of being awed by your prowess as programmer, they write comments suggesting for you to change this and that. Let’s imagine you’ve implemented a new cool feature or test case, pushed the changes to the server, created a PR and proudly wait for praise from reviewers. One of really cool git features is fixing up commits.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |