1. Pull Request Workflow & Review
git switch -c feature/xWhat it doesCreates a new working branch for a feature or fix and jumps to it directly
When to use itBefore starting to write any new code for the pull request
Example
git switch -c feature/health-checkgit diff --checkWhat it doesChecks edits and detects unwanted end spaces and formatting problems
When to use itbefore adding files to the commit to keep the PR clean
Example
git diff --checkgit push -u origin feature/xWhat it doesUploads the local feature branch to the remote repository and sets the trace
When to use itWhen ready to open a new withdrawal request
Example
git push -u origin feature/health-checkgh pr create --draftWhat it doesCreates a draft PR to indicate work is continuing
When to use itTo get early feedback from the team or run CI checks without requiring a final review
Example
gh pr create --draft --title "WIP: Health check endpoint"gh pr viewWhat it doesDisplays the details of the current withdrawal request or its number specified in the terminal
When to use itTo know the status of PR, reviewers and comments without leaving the terminal
Example
gh pr viewgh pr diffWhat it doesDisplays the full programming differences for the current withdrawal request
When to use itto review the submitted changes and compare them to the target branch
Example
gh pr diffgh pr checksWhat it doesDisplays the results of CI/CD checks and GitHub Actions workflow for the current PR
When to use itto ensure the success of all automated tests and checks before merging
Example
gh pr checksgh pr merge --squashWhat it doesSquash merge the pull request into one structured commit
When to use itto keep the master branch sequence and history clean
Example
gh pr merge --squash --delete-branch