Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Git恢复Force Push内容

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

Git恢复Force Push内容

git高级技巧,恢复force push的内容

Avatar for Mark24

Mark24

July 29, 2019
Tweet

More Decks by Mark24

Other Decks in Programming

Transcript

  1. 1.中央仓库是有记录的。 2.查看想要找回的commit 3.下载patches⽂文件 4.本地使⽤用 git apply 针对单个⽂文件 5.本地使⽤用 git am

    针对单⽂文件、⽬目录(批量量⽂文件) 6.区别am会⽣生成commit节点。这个就是我们想要的