摘要: 操作流程 # 1. 添加文件到忽略列表 echo "test.php" >> .gitignore # 2. 提交忽略规则 git add .gitignore git commit -m "Ignore test.php" # 3. 从Git索引移除文件(保留本地文件) git rm --cach 阅读全文
posted @ 2024-07-23 08:06 方达达 阅读(40) 评论(0) 推荐(0)