8/13/2023 0 Comments Git squash commitsIt is also possible to use words from the commit message instead of the commit hash, like so, One might also use, -fixup= alternatively to fixup. When committing changes it is possible to specify that the commit will in future be squashed to another commit and this can be done like so, $ git config -global tosquash true # Autosquashing and fixups Logging Commits to determine where to rebase Replace `pick` at the beginning of those lines with `squash` to squash them into the previous commit.Īfter selecting which commits you would like to squash, you will be prompted to write a commit message. In the editor that opens when running this command, determine which commits you want to squash.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |