git reflog 查看提交的版本列表
git reset --hard commitid 回滚到提交的版本
git restore . 回滚所有文件
git fetch --all:获取远程仓库的最新更改,包括所有分支。git pull --all:拉取所有分支的最新代码。
git clone --mirror REPOSITORY_URL 从git拉取所有分支到本地
git clone url 取git代码
git reflog 查看提交的版本列表
git reset --hard commitid 回滚到提交的版本
git restore . 回滚所有文件
git fetch --all:获取远程仓库的最新更改,包括所有分支。git pull --all:拉取所有分支的最新代码。
git clone --mirror REPOSITORY_URL 从git拉取所有分支到本地
git clone url 取git代码