git简单使用
查看git本地分支
gti branch
查看git本地分支和远程分支
gti branch -a
查看git分支太多进行退出
q
git创建本地分支
git branch hotfix
git本地分支切换
git branch checkout hotfix
git本地分支名称进行修改
git branch -m hotfix hotfix-new
git删除本地分支
git branch -D hotfix-new
git查看状态
git status
git把所有提交到暂存区
git add .
git单个提交
git add 文件路径名
如:git add src/view/holleword.vue
git暂存区提交到远程
git commit -m “提交的内容”
git推送到远程分支
git push origin hotfix:hotfix
git删除远程分支
git push origin --delete hotfix
git拉取远程分支到本地
git pull origin develop