error: The following untracked working tree files would be overwritten by checkout: Learn_C_the_HARD_WAY/Exercise22/dbg.h Learn_C_the_HARD_WAY/Exercise22/ex22.c Learn_C_the_HARD_WAY/Exercise22/ex22.h Learn_C_the_HARD_WAY/Exercise22/ex22_main.c Please move or remove them before you switch branches. Aborting fatal: Could not detach HEAD First, rewinding head to replay your work on top of it...
通过错误提示可知,是由于一些untracked working tree files引起的问题。所以只要解决了这些untracked的文件就能解决这个问题。