Skip to content

Feat/expanded undo hints#84

Merged
Huerte merged 2 commits into
mainfrom
feat/expanded-undo-hints
Jun 2, 2026
Merged

Feat/expanded undo hints#84
Huerte merged 2 commits into
mainfrom
feat/expanded-undo-hints

Conversation

@Huerte

@Huerte Huerte commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Type

  • Bug fix
  • New feature
  • Documentation
  • Refactor / internal

Overview

added gitgo undo link and gitgo undo push so users can fully revert these actions instead of just doing a local reset. fixed the terminal hints in link, push, and pull that were pointing to the wrong recovery commands.

Changes

  • gitgo undo link: removes the remote and soft-resets the initial commit.
  • gitgo undo push: soft-resets locally and force-pushes the revert to the remote.
  • push and link commands: updated terminal hints on success to point to their specific undo targets instead of the generic undo commit.
  • pull command: stopped assuming the autostash is always at index 1 in the recovery hint.
  • README.md and CHANGELOG.md: documented the new undo commands and fixed issues.

How to Test

  1. pip install -e ".[dev]"
  2. run pytest tests/test_undo.py tests/test_push.py tests/test_link.py
  3. expected result: all tests pass. you can also run gitgo link or gitgo push on a test repo and see the updated hints on success.

Checklist

  • I tested my changes locally and they work
  • I updated CHANGELOG.md under the [Unreleased] section
  • I updated README.md (if I added or changed a command)
  • I added or updated tests for my change (if applicable)
  • My change does not break any existing commands (if it does, describe the impact in the Overview)

@Huerte Huerte merged commit d9eaf9f into main Jun 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant