git clone 项目地址
git branch -a :全部分支(本地和远程),远程分支会用红色表示出来
git branch :本地分支
git branch -r: 远程分支
远程分支有 ,本地没有
将某个远程主机的更新,全部取回本地
git fetch
git remote show origin
git remote prune
git remote update origin --prune 同步远程分支
git stash 不想提交 存储起来 然后就可以切换分支hotfix紧急修改bug在切换回来 git stash pop
git stash list 查看存储列表
切换到远程任一分支 然后git pull同步远程分支
git checkout -b 本地分支 远程分支 (创建切换分支并追踪)
git branch -vv (查看本地对应的远程跟踪)
git branch dev :创建本地dev分支
git checkout dev 切换到本地dev分支
git branch -m oldBranchName newBranchName:重命名本地分支
cls 清屏 doc命令
git branch -D branchName 删除分支(删除时需要切到其他分支)
git push origin --delete branchName 删除远程分支(删除时切换到其他分支)
npm info webpack: webpack版本号