Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```