An open API service indexing awesome lists of open source software.

https://github.com/laserattack/gitrew

snapshots of the git repository
https://github.com/laserattack/gitrew

Last synced: 5 days ago
JSON representation

snapshots of the git repository

Awesome Lists containing this project

README

          

# Wtf?

**gitrew** (gitrewind) - a simple Git wrapper that creates snapshots of repository states at specific points in time.

Each snapshot contains all files as they existed at the time of the nearest commit before the specified timestamp.

The tool is completely read-only - it doesn't modify your working tree, HEAD, staging area, or Git history in any way.

# Usage

```
Usage: gitrew [-lcb] timestamp

Flags:
-l, --list Show all snapshots (~/.gitrewind dir) and exit
-c, --cleanup Delete all snapshots (~/.gitrewind dir) and exit
-b, --branch Specify a Git branch (otherwise, the current one is used)

Examples:
gitrew 2 weeks ago
gitrew -b master 2 minute ago
gitrew 2026-02-08 15:52

Warning: Git's date parser is very strange. 'gibberish' may return
the latest commit. Use proper timestamps e.g. like above
```

# Requirements

- linux system
- Perl 5.10+
- Git
- some standard unix utils