I want to stash some files, and among those files, there are files which I want to stash completely and others which I want to stash part of them.
For example, let's say I have the files below:
- new_file_untracked_to_stash.txt
- new_file_untracked_not_to_stash.txt
- part_of_file_changes_to_stash.txt
- all_changes_to_stash.txt
The first 2 files (1 and 2) are new files, untracked. The 2 other (3 and 4) are tracked, one of them (3) has few lines that I want to stash and few that I don't want to, and the other file (4) I want to stash it all.
How can I stash in this scenario?
Update: in case of stash specific files its possible with git stash push -m _STASH_MESSAGE_ _PATH_1 _PATH_2
In my case, I need to stash part of file change (for example lines 1-20 has been changed, but I want to stash only 1-12 lines and keep 13-20 lines to work on)