1. 程式人生 > >Git刪除文件

Git刪除文件

恢復 containe reset attr cast splay 圖片 -- aaaaaa

以 hello.txt 文件為例

1.在本地和倉庫把文件都刪除:

rm hello.txt
git rm hello.txt   或者  git add hello.txt
技術分享圖片

2.在本地把文件刪除了,但是想恢復過來:

git checkout -- hello.txt
技術分享圖片

Git刪除文件