Prevent git stash from working with unmanaged files?

I wonder how can I get git stash to not work with unmanaged files?

I repeatedly ran into problems when I simply "stitched" some changes, but found that I can not pop up / apply stash, because stash finds conflicts with files that are not managed with git anyway. The errors are as follows:

bin/classes.dex already exists, no checkout

I wonder when I look at the contents of a stunt using

git stash show stash@{1}

these files are not even indicated in dashes.

how can i prevent stash casting from these unmanaged files to stash in the first place?

If this has already happened, how can I make stash only apply files controlled by git? (these will be the same files listed in git stash show)

+4
1

, - , bin/classes.dex Git, , - .

, , , . (, )

, .gitignore ,

0

Source: https://habr.com/ru/post/1523330/


All Articles