Skip to content

Instantly share code, notes, and snippets.

@sunipkm
Created September 11, 2024 19:35
Show Gist options
  • Save sunipkm/ae7515e70dc9a4a323bf74a0f19d7211 to your computer and use it in GitHub Desktop.
Save sunipkm/ae7515e70dc9a4a323bf74a0f19d7211 to your computer and use it in GitHub Desktop.

Revisions

  1. sunipkm created this gist Sep 11, 2024.
    5 changes: 5 additions & 0 deletions git_tidbits.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # Git Tidbits
    ### Removing files in post after changing `.gitignore`
    ```sh
    $ git rm --cached `git ls-files -i -c --exclude-from=.gitignore`
    ```