目录标题
–amend 提交
1. make changes to a repo and
2. gitadd.3. git commit -m"some message"4. git commit --amend amend提交通常会修正并更新commit message,或者增加新的修改
5. update the existing commit message
6. git push --force origin main 必须force push才可以,一个commit被maend之后,git认为修正之后的commit与远程仓库的commit发生了偏离,git push会直接失败
git push -f origin main
**Further Reading :**Git常用命令汇总
版权归原作者 张紫娃 所有, 如有侵权,请联系我们删除。