Skip to content

Committerが改ざんされない #2

@ghost

Description

環境
  • Git for Windows 2.39.2
CLI
PS C:\test> git init
Initialized empty Git repository in C:/test/.git/
PS C:\test> git add .
PS C:\test> git commit -m "first commit"
[master (root-commit) 820538c] first commit
 1 file changed, 1 insertion(+)
 create mode 100644 Untitled-1.py
PS C:\test> git log -1 --format=%H
820538ca1623d620358bb1b97072e82a8e572d7e
PS C:\test> commit_artist -p 0123456
102760448 hashes calculated...
Yay! Now your new hash of the latest commit is 820538ca1623d620358bb1b97072e82a8e572d7e.
PS C:\test> git cat-file -p 820538ca1623d620358bb1b97072e82a8e572d7e
tree 5f30a8d2abb621d507c4a118f7900d420e9d0c96
author NOKKY726 <hoge@gmail.com> 1676480614 +0900
committer NOKKY726 <hoge@gmail.com> 1676480614 +0900

first commit

計算はされているようですが、コミットハッシュが変更されずに返されます。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions