美文网首页Git
Git remove files which are tagge

Git remove files which are tagge

作者: JaedenKil | 来源:发表于2021-06-09 10:54 被阅读0次

    Command:

    git rm -r --cached folderName/
    

    Demo:

    Changes to be committed:
      (use "git rm --cached <file>..." to unstage)
            new file:   .gitignore
            new file:   Method.py
            new file:   SkipConfig.py
            new file:   TestGvaBasic.py
            new file:   config.ini
            new file:   log/adb.log
            new file:   log/execute.log
            new file:   log/main.log
            new file:   log/suite.log
    
    $ git rm -r --cached log/
    rm 'log/adb.log'
    rm 'log/execute.log'
    rm 'log/main.log'
    rm 'log/suite.log'
    
    Changes to be committed:
      (use "git rm --cached <file>..." to unstage)
            new file:   .gitignore
            new file:   Method.py
            new file:   SkipConfig.py
            new file:   TestGvaBasic.py
            new file:   config.ini
    

    相关文章

      网友评论

        本文标题:Git remove files which are tagge

        本文链接:https://www.haomeiwen.com/subject/wfmjeltx.html