I have 2 nearly identical repositories. One repository has some changes, with some files renamed, added and removed.
‘git status’ shows that files were removed, added, etc.
Same happens after ‘git stash push’ and ‘git stash pop’.
However, when I create a patch with ‘git diff’ and then apply it to the other repository with ‘git apply’ – renamed files aren’t added to the repository with their new names, and original files are left empty.
How to transfer current work from one repo to another without committing them such that moved/added/deleted files would be appropriately also added/deleted in the repository?