以某个tp5的项目为例:
git pull
git rm -r runtime
git commit -m 'delete runtime'
git pull
git push
git status
vim .gitignore
里面写:
.idea
runtime/
git status
git add .
git commit -m 'ignore runtime'
git pull
git push
==
.gitignore
里面添加:
application/database.php
git rm application/database.php
git commit -m 'git delete runtime'
git pull
git push
==