git将本地文件完和仓库文件目录完全替换-------还有将本地更新的文件放到仓库中,直接提交即可
完全替换 crawler 目录(推荐)
bash
1. 删除旧的 crawler 目录(在 Git 中标记为删除)
git rm -r crawler/crawler/
git rm -r crawler/utils/
2. 添加新的 crawler 目录
git add crawler/
3. 提交更改
git commit -m “Refactor: Update crawler directory structure and replace with new files”
4. 推送到远程仓库
git push origin main
更新的crawler目录下的文件提交到仓库中
2. 添加 crawler 目录下的所有更改
git add crawler/
3. 提交更改
git commit -m “Update crawler directory with latest changes”
4. 推送到远程仓库
git push origin main