2018年6月7日 星期四

Git: Revert single file to certain commit 將單一檔案還原回特定提交

Check the specific diff before checkout 檢查版本差異:
git diff <commit hash> <filename>

Then do the revert work 還原特定檔案成舊版本:

git checkout <commit hash> -- <filename>

沒有留言:

張貼留言