我克隆了我的倉庫,其中有一些文件夾和文件:!git clone https://{username}:{password}@github.com/{username}/{project}.git然后我更改當前目錄:%cd {project}刪除文件夾:!rm -rf "/content/{project}/sample_data"檢查狀態:!git statusOn branch masterYour branch is up to date with 'origin/master'.Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) deleted: sample_data/README.md deleted: sample_data/anscombe.json deleted: sample_data/california_housing_test.csv deleted: sample_data/california_housing_train.csv deleted: sample_data/mnist_test.csv deleted: sample_data/mnist_train_small.csvno changes added to commit (use "git add" and/or "git commit -a")做承諾:!git commit -m "Removed all"On branch masterYour branch is up to date with 'origin/master'.Changes not staged for commit: deleted: sample_data/README.md deleted: sample_data/anscombe.json deleted: sample_data/california_housing_test.csv deleted: sample_data/california_housing_train.csv deleted: sample_data/mnist_test.csv deleted: sample_data/mnist_train_small.csvno changes added to commit并推動:!git push origin master之后,我的文件夾sample_data仍在我的倉庫中。我究竟做錯了什么?
添加回答
舉報
0/150
提交
取消