![](/img/trans.png)
[英]How to ensure that commit contains specific user info in a shared git repository instead of group email id?
[英]git $Id$ how to ensure it is updated?
在我的存儲庫中,我使用.gitattributes並將$ Id $哈希值附加到文件中。 但是在一個典型的委員會中
$git commit -a -m ""
$git push origin master
我注意到在修改后的文件中嵌入的$ Id $不會更改。 進一步
$git checkout modified_file.txt
是確保更新的$ Id $所必需的。
是否有命令自動更新所有哈希?
ident
和其他效果屬性僅在簽出時起作用。 要強制簽出,請刪除.git/index
並運行git reset --hard
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.