Skip to content

Instantly share code, notes, and snippets.

@citizen428
Last active August 13, 2018 15:05
Show Gist options
  • Save citizen428/3c41324a1ab6d178fd2d1d443e2d7bf9 to your computer and use it in GitHub Desktop.
Save citizen428/3c41324a1ab6d178fd2d1d443e2d7bf9 to your computer and use it in GitHub Desktop.
git reset filename # or git rm --cached filename
echo filename >> .gitignore # add it to .gitignore to avoid re-adding it
@shuuji3
Copy link

shuuji3 commented Jul 29, 2018

Hi, I think git remove --cached filename should be git rm --cached filename.

We got:

> git remove --cached filename
git: 'remove' is not a git command. See 'git --help'.

The most similar command is
	remote

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment