Skip to content

Instantly share code, notes, and snippets.

@bartek5186
Last active October 28, 2018 16:04
Show Gist options
  • Save bartek5186/dd9b0fb1ec287d084f40ee29fc7a252e to your computer and use it in GitHub Desktop.
Save bartek5186/dd9b0fb1ec287d084f40ee29fc7a252e to your computer and use it in GitHub Desktop.
/* List files with specific flag
git ls-files -v | grep "^S"
git ls-files -v
H cached
S skip-worktree
M unmerged
R removed/deleted
C modified/changed
K to be killed
? other
*/
# Hide gitignore file
git update-index --assume-unchanged .gitignore
# Unhide gitignore file
git update-index --no-assume-unchanged .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment