Skip to content

jsageryd/git-vanity-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-vanity-commit

License MIT

Installation

go install github.com/jsageryd/git-vanity-commit@latest

Usage example

$ git init && git add . && git commit -m 'Initial commit'
Initialized empty Git repository in /Users/j/go/src/github.com/jsageryd/git-vanity-commit/.git/
[master (root-commit) 8f155be] Initial commit
 4 files changed, 237 insertions(+)
 create mode 100644 LICENSE
 create mode 100644 README.md
 create mode 100644 main.go
 create mode 100644 main_test.go
$ git-vanity-commit -prefix=c0ffee -reset
21:20:20 | Using commit at HEAD (8f155be96971)
21:20:20 | Finding hash prefixed "c0ffee"
21:20:31 | Found c0ffee9c331bc17c9e9605fcfbdcfcd439ada240 (10.786s)
21:20:31 | HEAD is now at c0ffee9c331bc17c9e9605fcfbdcfcd439ada240
$ git log --oneline
c0ffee9 (HEAD -> master) Initial commit

About

Commit hash prefix finder tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages