Git: can't switch between branches

前端 未结 3 1664
眼角桃花
眼角桃花 2021-01-17 03:53

In a local folder with several files, I have a git repository for which branch x only includes a few of those files, and the master one inc

3条回答
  •  旧时难觅i
    2021-01-17 04:12

    You have some files (the ones listed) that have been edited, but by checking out a other branch, you'll overwrite (and lose) these edits.

    You can commit these changes, or stash them.

    See : http://git-scm.com/book/en/v1/Git-Tools-Stashing

提交回复
热议问题