https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging
note that if your working directory or staging area has uncommitted changes that conflict with the branch you are checking out, GIT WON'T LET YOU SWITCH BRANCHES.
IT'S BEST TO HAVE A CLEAN WORKING STATE WHEN YOU SWITCH BRANCHES.
when you switch branches, Git resets your working directory to look like it did the last time you committed on that branch.
note that if your working directory or staging area has uncommitted changes that conflict with the branch you are checking out, GIT WON'T LET YOU SWITCH BRANCHES.
IT'S BEST TO HAVE A CLEAN WORKING STATE WHEN YOU SWITCH BRANCHES.
when you switch branches, Git resets your working directory to look like it did the last time you committed on that branch.
댓글
댓글 쓰기