📌  相关文章
📜  删除和排除 git 中的文件夹以进行向上提交 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:52.236000             🧑  作者: Mango

代码示例1
#Ensure to have added the directory, if not:

git add FolderName

#Steps to remove directory

git rm --cached FolderName -r
git commit -m "Removed folder from repository"
git push origin master

#Steps to ignore that folder in next commits

#To ignore that folder from next commits make one file in root named .gitignore
#and put that folders name into it. You can put as many as you want
#.gitignore file will be look like this:

/FolderName