// 下载代码
git clone https://github.com/qing-ke/newbee-mall-vue3-app.git
// 查看本地所有分支
git branch
// 查看远程所有分支
git branch -r
// 查看本地和远程所有分支
git branch -a
// 查看状态
git status
// 新建本地分支loacl
git checkout -b local
// 将本地的分支推上去
git push origin local:local
// add a.js
git add src/assets/a.js
// 提交到本地
git commit -m 新建a.js
// 推送到线上
git push origin local
// 拉代码
git pull
// 切换分支
git checkout test
// 查看本地远程分支关联
git branch -vv
// 当前分支和远程分支关联
git branch --set-upstream-to origin/dev
// 合并分支
https://blog.csdn.net/qq_20042935/article/details/107223859
// 多个commit合并为一条
https://www.cnblogs.com/lookphp/p/5799533.html
Git命令
于 2022-08-02 18:57:53 首次发布