table of Contents
Command Daquan
-
Check whether the installation git commands
git #直接在命令行敲 git
-
Create a repository (warehouse initialization)
git init
-
git add git commit -m '版本描述'
-
git log
-
git reset --hard HEAD^ 这里的HEAD是指向目前位置的指针。 如果HEAD是指向10.0的版本的话,那么 (第一种表示方法): (第二种表示方法): HEAD^就是指向9.0 HEAD~1 就是指向9.0 HEAD^^就是指向8.0 HEAD~4 就是指向6.0 HEAD^^^就是指向7.0 HEAD~100 就是指向前100个版本
-
git reset --hard 版本号 注意是版本号,而不是commit时候的版本描述。 复制版本号得时候,不需要将全部复制下来,只需要复制前面得几个数字就行
-
View historical operating record
git reflog
-
View the status of the current workspace
git status