Git hub 忽略 文件 、文件夹

  1.  .gitignore 中添加: 
    • #Common useless files
      *.zip
      *.jar
      *.exe

      [Dd]ebug/
      [Dd]ebugPublic/
      [Rr]elease/
      x64/
      build/
      bld/
      [Bb]in/
      [Oo]bj/
      */web/obj/
      */web/bin/

      Debug/ 
      Release/ 
      obj/


      source/UI/Innocellence\.Web/App_Data/Logs/

  2. 打开 git bash
  3. 输入命令 进入文件夹: 
    • cd  d: 

      cd folder

      3. 执行命令: 

      git rm -r --cached .

      git add .

      git commit -m 'update .gitignore'

猜你喜欢

转载自www.cnblogs.com/luoye-chenxin/p/9698125.html
今日推荐