changer@DESKTOP-2S5TE8V MINGW64 ~/Desktop/新建文件夹 (master) $ git status On branch master Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: 1.0.0
Untracked files: (use "git add <file>..." to include in what will be committed) 1.0.1.txt
no changes added to commit (use "git add" and/or "git commit -a")
changer@DESKTOP-2S5TE8V MINGW64 ~/Desktop/新建文件夹 (master) $ git commit On branch master Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: 1.0.0
Untracked files: (use "git add <file>..." to include in what will be committed) 1.0.1.txt
no changes added to commit (use "git add" and/or "git commit -a")
changer@DESKTOP-2S5TE8V MINGW64 ~/Desktop/新建文件夹 (master) $ git checkout newbranch Switched to branch ‘newbranch‘ M 1.0.0
changer@DESKTOP-2S5TE8V MINGW64 ~/Desktop/新建文件夹 (newbranch) $ git add Nothing specified, nothing added. hint: Maybe you wanted to say ‘git add .‘? hint: Turn this message off by running hint: "git config advice.addEmptyPathspec false"
changer@DESKTOP-2S5TE8V MINGW64 ~/Desktop/新建文件夹 (newbranch) $ git commit -a Aborting commit due to empty commit message.
changer@DESKTOP-2S5TE8V MINGW64 ~/Desktop/新建文件夹 (newbranch) $ git status On branch newbranch Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: 1.0.0
Untracked files: (use "git add <file>..." to include in what will be committed) 1.0.1.txt
no changes added to commit (use "git add" and/or "git commit -a")
changer@DESKTOP-2S5TE8V MINGW64 ~/Desktop/新建文件夹 (newbranch) $ git add Nothing specified, nothing added. hint: Maybe you wanted to say ‘git add .‘? hint: Turn this message off by running hint: "git config advice.addEmptyPathspec false"