From c68e055c65540fb0023a9b9e305aca00e1ec7164 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 28 Jan 2026 19:27:34 +0000 Subject: [PATCH 1/3] Initial plan From d7f6dbccb7c561e485a4d2a7e1e48dc16e458277 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 28 Jan 2026 19:36:25 +0000 Subject: [PATCH 2/3] Add advanced git command docs Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com> --- USAGE.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/USAGE.md b/USAGE.md index 6f72436..3707384 100644 --- a/USAGE.md +++ b/USAGE.md @@ -255,6 +255,50 @@ console.log(`Confidence: ${analysis.confidence}`); console.log(`Reasoning: ${analysis.explanation}`); ``` +## Advanced Git Commands + +### git stash + +Temporarily save uncommitted work so you can switch branches safely. + +```bash +# Save current changes with a message +git stash push -m "wip: listener tweaks" + +# Re-apply the most recent stash +git stash pop +``` + +### git cherry-pick + +Apply a specific commit from another branch onto your current branch. + +```bash +# Cherry-pick a single commit by SHA +git cherry-pick a1b2c3d4 +``` + +### git revert + +Create a new commit that undoes a previous commit (safe for shared branches). + +```bash +# Revert the most recent commit +git revert HEAD +``` + +### git reset + +Move the branch pointer back to an earlier commit (use with care on shared branches). + +```bash +# Keep changes staged but remove the last commit +git reset --soft HEAD~1 + +# Discard the last commit and working tree changes +git reset --hard HEAD~1 +``` + ## Troubleshooting ### No mentions detected From 9e5ccfb7e7db6e6cad2040d8d6043479518e66a0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 28 Jan 2026 19:38:44 +0000 Subject: [PATCH 3/3] Move advanced git docs to README Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com> --- README.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ USAGE.md | 44 -------------------------------------------- 2 files changed, 46 insertions(+), 44 deletions(-) diff --git a/README.md b/README.md index fb39de2..6119db2 100644 --- a/README.md +++ b/README.md @@ -115,3 +115,49 @@ Then tag your bot from another account to see it respond. Replace the placeholde ## Current status Start with Phases 1–4 today. If you hit a snag, share the exact output/error and we can debug together. + +## Advanced Git Commands + +Need to manage work-in-progress changes or selectively apply commits? Use the commands below. + +### git stash + +Temporarily save uncommitted work so you can switch branches safely. + +```bash +# Save current changes with a message +git stash push -m "wip: listener tweaks" + +# Re-apply the most recent stash +git stash pop +``` + +### git cherry-pick + +Apply a specific commit from another branch onto your current branch. + +```bash +# Cherry-pick a single commit by SHA +git cherry-pick a1b2c3d4 +``` + +### git revert + +Create a new commit that undoes a previous commit (safe for shared branches). + +```bash +# Revert the most recent commit +git revert HEAD +``` + +### git reset + +Move the branch pointer back to an earlier commit (use with care on shared branches). + +```bash +# Keep changes staged but remove the last commit +git reset --soft HEAD~1 + +# Discard the last commit and working tree changes +git reset --hard HEAD~1 +``` diff --git a/USAGE.md b/USAGE.md index 3707384..6f72436 100644 --- a/USAGE.md +++ b/USAGE.md @@ -255,50 +255,6 @@ console.log(`Confidence: ${analysis.confidence}`); console.log(`Reasoning: ${analysis.explanation}`); ``` -## Advanced Git Commands - -### git stash - -Temporarily save uncommitted work so you can switch branches safely. - -```bash -# Save current changes with a message -git stash push -m "wip: listener tweaks" - -# Re-apply the most recent stash -git stash pop -``` - -### git cherry-pick - -Apply a specific commit from another branch onto your current branch. - -```bash -# Cherry-pick a single commit by SHA -git cherry-pick a1b2c3d4 -``` - -### git revert - -Create a new commit that undoes a previous commit (safe for shared branches). - -```bash -# Revert the most recent commit -git revert HEAD -``` - -### git reset - -Move the branch pointer back to an earlier commit (use with care on shared branches). - -```bash -# Keep changes staged but remove the last commit -git reset --soft HEAD~1 - -# Discard the last commit and working tree changes -git reset --hard HEAD~1 -``` - ## Troubleshooting ### No mentions detected