https://git-scm.com/download/win
sudo apt-get install git
其余配置自己搜,网上多的很。
远程分支:main
git pull origin main
git clone -b 远程分支名 仓库地址
git init
git clone -b main https://github.com/Lareinahe/gitcmdtest.git
git branch -r
git branch
git checkout -b 本地分支 origin 远程分支
git checkout -b master origin main
git pull
git add .
git commit -m "testlog"
git push origin main:main
git status
git log
git remote -v
git remote add origin 远程仓库地址
//暂存
git stash
//查询
git stash list
//拉取,会覆盖
git pull
//恢复并删除堆中保存的更改
git stash pop
//恢复并删除堆中保存的更改,编号为0
git stash pop stash@{0}
//恢复但不删除编号为0的暂存
git stash apply stash@{0}
//手动解决合并冲突
//删除0号暂存
git stash drop stash@{0}
//删除所有
git stash clear