IDEA checkout Git branch pop Git Checkout Problem

1. When the local branch switching (eg A cut to B), will pop Restore workspace on branch switching dialog box, select if so, when switching branch, you have done in the current branch (A), some have not yet add or commit / push file changes (including setting breakpoints) is also brought into the branch after switching on (B);

2. If no local workspace uncommitted changes, the branch will be successful handover

3. If the local workspace (branch a) some files will be changes to branch B, IDEA will pop up a dialog box that lets you select Force Checkout or Smart Checkout;

    if you select Force Checkout, some of the local workspace (branch a) of uncommitted changes will be covered (by branch B coverage), there will very likely lose the code! ! !
    If the selected Smart Checkout, IDEA stash first performs a command, storing these uncommitted changes, and to the branch B checkout, after switching to the branch B, unstash these modifications, the local branch A will be brought to such modifications branch B.

 

 

---------------------
Disclaimer: This article is CSDN blogger "shiyuehit 'original article, follow the CC 4.0 by-sa copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/shiyuehit/article/details/83010956

Guess you like

Origin www.cnblogs.com/jinlinFighting/p/11351869.html