brew install gitwinget install --id Git.Git -e --source wingetThis sequence of commands creates a clean, up-to-date patch branch from main, then cherry-picks a single, specific commit to it. This is a common workflow for applying a hotfix from a feature branch to the main development branch or for isolating a single commit to apply elsewhere.
git show --summary
git show --summary <sha>
git checkout main && git pull
git checkout -b patch/mypatch
git cherry-pick [commit-hash]
git push -u origin patch/mypatch