Re: --skip-worktree and operations like checkout / stash /etc.

2018-09-28 Thread Raman Gupta
In the meantime I've created this simple script, but what a hack... #!/bin/bash git ls-files -v | grep "^S " | cut -c3- | readarray ignored for x in "${ignored[@]}"; do git update-index --no-skip-worktree -- "$x" done git checkout -m $@ for x in "${ignored[@]}"; do git update-index --skip-work

--skip-worktree and operations like checkout / stash /etc.

2018-09-27 Thread Raman Gupta
The comand `update-index --skip-worktree` seems to be an ideal way to tell git to locally ignore some modified files. However, this seems not to play well with very common commands like `checkout` and `stash`. $ git checkout other-branch error: Your local changes to the following files would be ov