0%

git

查看当前分支

git branch -- show-current

回退到上一个版本

1
git reset --hard HEAD~1

删除文件

1
git rm filename

删除分支

1
git branch -d branch_name

创建新分支

1
2
git checkout -b branch_name
git switch -c branch_name

回退到clone后的版本

1
git restore .