Я клонирую свое хранилище, где у меня есть несколько папок и файлов:
!git clone https://{username}:{password}@github.com/{username}/{project}.git
, затем я меняю текущий каталог:
%cd {project}
удаляем папку:
!rm -rf "/content/{project}/sample_data"
проверить статус:
!git status
On branch master
Your 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.csv
no changes added to commit (use "git add" and/or "git commit -a")
сделать коммит:
!git commit -m "Removed all"
On branch master
Your 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.csv
no changes added to commit
и нажать:
!git push origin master
После этого моя папка sample_data
все еще находится в моем репо,Что я делаю не так?