Skip to content

Instantly share code, notes, and snippets.

@sandabu
Last active December 19, 2017 06:37
Show Gist options
  • Select an option

  • Save sandabu/b033a8470a7713e22b20badfe7077740 to your computer and use it in GitHub Desktop.

Select an option

Save sandabu/b033a8470a7713e22b20badfe7077740 to your computer and use it in GitHub Desktop.

Revisions

  1. @SHALMAN SHALMAN revised this gist Dec 19, 2017. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1 +1,5 @@
    git rm --cached `git ls-files --full-name -i --exclude-from=.gitignore`
    git rm --cached `git ls-files --full-name -i --exclude-from=.gitignore`

    Argument list too longと怒られる

    git ls-files --full-name -i --exclude-from=.gitignore | xargs git rm --cached
  2. @SHALMAN SHALMAN created this gist Dec 19, 2017.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    git rm --cached `git ls-files --full-name -i --exclude-from=.gitignore`