How to Install and Uninstall git-restore-mtime Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: February 03,2025

1. Install "git-restore-mtime" package

Please follow the steps below to install git-restore-mtime on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install git-restore-mtime

2. Uninstall "git-restore-mtime" package

This is a short guide on how to uninstall git-restore-mtime on Ubuntu 20.10 (Groovy Gorilla):

$ sudo apt remove git-restore-mtime $ sudo apt autoclean && sudo apt autoremove

3. Information about the git-restore-mtime package on Ubuntu 20.10 (Groovy Gorilla)

Package: git-restore-mtime
Architecture: all
Version: 2019.11-1
Multi-Arch: foreign
Priority: optional
Section: universe/vcs
Source: git-mestrelion-tools
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Adam Borowski
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 52
Depends: python3:any, git
Filename: pool/universe/g/git-mestrelion-tools/git-restore-mtime_2019.11-1_all.deb
Size: 17520
MD5sum: 34af1b1c6f850515ae54c944dfa20b69
SHA1: a7564f228b3025a7a3d90d5893a371abe78587ec
SHA256: b3f257325dac090e602a25647bd5e78d8c3908b312c39a8517c01beabbef45a1
SHA512: ab39bc8276a13676bce512fbcba00f9291410af6d7f648180c0562bf3c15be75d18406a457b1cdbfff7182878ffbd0ed7def4329bf1082540802a2eca90b1626
Homepage: https://github.com/MestreLion/git-tools
Description-en: set timestamps to the date of a file's last commit
This utility can set timestamps in a git checkout to the last commit that
changes a given file. This is useful whenever meaningful mtimes are wanted,
as "last change" is better than "last checkout". Use cases include syncing
timestamps on a web server's contents, preparing a release tarball, etc.
Pretty much, every scenario other than an unclean source tree where you're
about to type "make" without "make clean".
.
When called from a .git/hooks/post-checkout trigger, this is the equivalent
of Subversion's "use-commit-times".
.
Unlike metastore, git restore-mtime gives you only commit times rather than
the true original timestamp; on the other hand it works retroactively and
doesn't require a manual action by every contributor in every working copy.
.
This package includes three other utilities:
* git clone-subset - clones only some files from a repository (inc. history)
* git find-uncommitted-repos - recursively searches for unclean git repos
* git strip-merge - filters away some files during a merge
Description-md5: b92d869a86b63cc4017d219aa4e8341f