How to Install and Uninstall git-restore-mtime Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: May 03,2024

1. Install "git-restore-mtime" package

Please follow the step by step instructions below to install git-restore-mtime on Ubuntu 21.04 (Hirsute Hippo)

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

2. Uninstall "git-restore-mtime" package

Please follow the guidance below to uninstall git-restore-mtime on Ubuntu 21.04 (Hirsute Hippo):

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

3. Information about the git-restore-mtime package on Ubuntu 21.04 (Hirsute Hippo)

Package: git-restore-mtime
Architecture: all
Version: 2020.09-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_2020.09-1_all.deb
Size: 17624
MD5sum: c9a867611118363f58f893bb5c04c438
SHA1: 7abbc0aecbdf94fda321db664e99121c9a30a405
SHA256: c51e99b77df3d5ba56449eb29af76aba9a0d20610b8f17338adfaf5f9d0e789d
SHA512: 0ed9d4ade75df8ef9634fb03c84cb2af457583b496d680fb69cc469034e97c056f35297398985914d86ca9f00cfc0d111f10710857af84ed642a733cfff886ff
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