In my repository I used the .gitattributes and append $Id$ hashes to my files. However in a typical commmit
$git commit -a -m ""
$git push origin master
I notice that the embedded $Id$ in the modified files dont change. A further
$git checkout modified_file.txt
is necessary to ensure the updated $Id$.
Is there a command to update all the hashes automatically?
ident
and other effects attributes work only on check-out. To force checkout remove .git/index
and run git reset --hard
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.