git修改本地提交时间到远程仓库 && 撤销已提交到远程仓库的修改

mowen 2025-02-24 78

修改本地提交时间到远程:

echo 123 >> test.sh && git add . && git commit -m "up" && git commit --amend --date="2024-02-21T09:59:30"
:wq保存
git push


撤销已提交到远程仓库的修改:

git reset --hard commit_id
git push origin -f


最新回复 (0)
返回
发新帖
X