我克隆了我的仓库,其中有一些文件夹和文件:!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
提交
取消