Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以从远程仓库更新我的 git 存储库的日期和时间。目前我使用“ repo sync”和“ git pull --rebase”来更新我的本地存储库。
repo sync
git pull --rebase
谢谢
尝试
git rev-list --format=format:'%ai' --max-count=1 `git rev-parse HEAD`
来自https://gist.github.com/bitrut/1494315