Install Gimp via Homebrew« an older post
a newer one »Save Emacs Macro

Git remove from repo, keeping on file system

Snippet

git rm will remove a file from the file system and the repository. If you want to keep the file locally (say, because you're adding it to the .gitignore file), remove it from the repository cache:

# for a file
git rm --cached filename
 
# for a directory
git rm --cached -r directoryname

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.