一、常用提交命令
-
初始化到推送
git init git add * git status git commit -m "提交描述" git remote add origin 远程仓库地址 git push -u origin master -f git pull
-
回滚版本
git log git reset --hard hash码
-
更新远程仓库地址
git remote -v git remote set-url origin 远程仓库地址
-
切换分支
git branch git branch master git checkout master git branch -D main
-
删除git
rm -rf .git
-
克隆git
git clone 远程地址