git reset HEAD执行成功的话应该会把当期目录下的状态都还原。你执行git reset HEADDid you fail? Are there any error messages?
For newly added files, I am still used to itgit add . -- ‘*’得按着shift, so tired
I use git add * git add * git会自动把你当前目录所有修改过的文件添加 git add . Git will recursively add all the files in the directory where you execute the command, so if you pass the current working directory as a parameter, it will track all the files there
git add .
添加当前工作目录文件到indexgit commit -m "some comments"
生成一个commitgit push
Push Servergit reset HEAD
执行成功的话应该会把当期目录下的状态都还原。你执行git reset HEAD
Did you fail? Are there any error messages?For newly added files, I am still used to it
git add .
-- ‘*’得按着shift
, so tiredI use
git add *
git add *
git会自动把你当前目录所有修改过的文件添加git add .
Git will recursively add all the files in the directory where you execute the command, so if you pass the current working directory as a parameter, it will track all the files thereUsually just add all modified files
If you want to synchronize all changes, try it
git add -A