- 强行抹掉远程commit log
不小心把不该提交的东西提交了, 可以用这招救命, 团队协作慎用
|
|
- 强制同步远端代码
不小心把本地搞乱, 除了
rm and clone again
大法外, 还可以这样
|
|
- git clone xxx --depth=x 后遗症
包括不仅限于: 看不到太多 commit log 以及无法查看/切换远程分支
解决办法要么直接删了 repo 重新 clone, 这属于大力出奇迹的方案
要么:
|
|
# NOTE: I am not responsible for any expired content.
create@2020-01-02T10:51:58+08:00
update@2021-03-15T07:35:08+08:00
comment@https://github.com/ferstar/blog/issues/10