### Example commit message with body Source: https://github.com/nestjs/mongoose/blob/master/CONTRIBUTING.md An example commit message including a header, blank line, body, and another blank line. ```git fix(@nestjs/core) need to depend on latest rxjs and zone.js The version in our package.json gets copied to the one we publish, and users need the latest of these. ``` -------------------------------- ### Install NestJS Mongoose and Mongoose Source: https://github.com/nestjs/mongoose/blob/master/README.md Use npm to install the necessary packages for integrating Mongoose with NestJS. This command installs both the NestJS Mongoose module and the Mongoose library itself. ```bash npm i --save @nestjs/mongoose mongoose ``` -------------------------------- ### Example commit message header Source: https://github.com/nestjs/mongoose/blob/master/CONTRIBUTING.md A sample commit message header following the specified format. ```git docs(changelog) update change log to beta.5 ``` -------------------------------- ### Commit changes with optional add Source: https://github.com/nestjs/mongoose/blob/master/CONTRIBUTING.md Commit your changes. The optional -a flag automatically stages edited files. ```shell git commit -a ``` -------------------------------- ### Create a new git branch Source: https://github.com/nestjs/mongoose/blob/master/CONTRIBUTING.md Before making changes, create a new git branch from the master branch for your work. ```shell git checkout -b my-fix-branch master ``` -------------------------------- ### Rebase and force push after review Source: https://github.com/nestjs/mongoose/blob/master/CONTRIBUTING.md If changes are requested, rebase your branch interactively with master and force push to update your pull request. ```shell git rebase master -i git push -f ``` -------------------------------- ### Push branch to GitHub Source: https://github.com/nestjs/mongoose/blob/master/CONTRIBUTING.md After committing, push your local branch to your GitHub repository. ```shell git push origin my-fix-branch ``` -------------------------------- ### Update local master with upstream changes Source: https://github.com/nestjs/mongoose/blob/master/CONTRIBUTING.md Update your local master branch with the latest changes from the upstream repository. ```shell git pull --ff upstream master ``` -------------------------------- ### Delete local branch Source: https://github.com/nestjs/mongoose/blob/master/CONTRIBUTING.md After merging and deleting the remote branch, delete the local branch. ```shell git branch -D my-fix-branch ``` -------------------------------- ### Delete remote branch on GitHub Source: https://github.com/nestjs/mongoose/blob/master/CONTRIBUTING.md After your pull request is merged, delete the remote branch on GitHub. ```shell git push origin --delete my-fix-branch ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.