Skip to content

git backup command #29

@epage

Description

@epage

Use case: users unsure what git-stack will do and want a way to give them more confidence by undoing the action

Proposed solution:

  • git stack --rebase always performs a backup to .git/backups/git-stack.bak)
    • Mapping of branch names to commits with metadata to give hints about what was happening (e.g. commit summaries, date)
  • git branch-backup push creates a backup, defaulting the output path to .git/backups./recent.bak
    • Allow adding a comment
  • git branch-backup list enumerates files in .git/backups
  • git branch-backup clear removes backups in .git/backups
    • drop to remove a specific one
  • git branch-backup pop <path> applies the backup (defaults to recent.bak)
    • Auto-deletes
    • Use apply to not auto-delete

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions