Smartgit: moving local changes from branch binding

I have local changes that I saved in stash. Now I (subsequently) created a new branch and want to drag my changes from stash to this branch. SmartGit: Local> Apply stash.

When I try SmartGit asks me: Restore index (checkbox), what is it? Should I choose it or not?

enter image description here

+6
source share
1 answer

The Restore index git stash apply --index will result in git stash apply --index . According to the git page , this means:

If the -index option is used, then it tries to restore not only changes of working trees, but also indexes. However, this may fail when you have conflicts (which are stored in the index, where therefore you can no longer apply the changes since they were originally).

So, in general, yes, you should try applying the cache by enabling this option.

+7
source

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


All Articles