Skip to content

gistrec/git-hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Git-Hash

PyPI Codecov


Git-Hash can be used to create commit hash by mask.

Installation

Git-Hash requires Python 2.7 or 3.4+. Further, for installation, pip should be used.

To install the latest release of Git-Hash from PyPI:

pip install git-hash

Usage

To generate a hash that starts with <hash>, go to the directory with the git repository and write:

git-hash <hash> --verbose

You will see something like this:

> git-hash aaaaaa --verbose
Subhash to find: aaaaaa
Approximate number of permutations 1048576
Iteration 130000, compute 12%, elapsed 0 sec, estimated 1 sec.
Iteration 260000, compute 25%, elapsed 0 sec, estimated 1 sec.
Iteration 390000, compute 37%, elapsed 1 sec.
Commit hash: aaaaaa3ad991376a76b69853969c8414392ba03a
Author date: 1595131373

You can change commit hash by:
GIT_COMMITTER_DATE="Thu Apr 22 13:35:45 2021 +0700" git commit --amend --no-edit --date "1595131373"

Note: it is not recommended to specify more than 8 characters.

About

Create commit hash by mask

Topics

Resources

Stars

Watchers

Forks

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy