TOUVE 发表于 2018-9-17 07:33:19

linux下git 的忽略命令

  以某个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
  ==

页: [1]
查看完整版本: linux下git 的忽略命令