美文网首页Git
Git remove untracked files

Git remove untracked files

作者: JaedenKil | 来源:发表于2020-09-15 14:27 被阅读0次
    • Run the following command to see which files or directories will be removed on a trial operation:
    git clean -dn
    // OR `git clean -d -n`
    
    $ git clean -dn
    Would remove app/src/main/assets/
    
    • If the output of the above command is what you've expected, run the below command to actually remove these files or directories:
    git clean -df
    // OR `git clean -d -f`
    
    $ git clean -df
    Removing app/src/main/assets/
    

    There are other parameters for cmd git clean, which will remove ignored files, but normally we don't need it.

    相关文章

      网友评论

        本文标题:Git remove untracked files

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