
Git
黄钟飞
可恶啊,头发还有这么!
展开
-
fatal: a branch is expected, got remote branch ‘origin/master‘ hint: If you want to detach HEAD at t
Git 切换远程仓库master fatal: a branch is expected, got remote branch 'origin/master' hint: If you want to detach HEAD at t原创 2024-05-24 10:59:18 · 507 阅读 · 0 评论 -
git 提交分支提交合并master
git 分支提交 然后合并到master第一步: 提交分支(例如:dev/test)分支git add .git commit -m '这次提交内容是什么'git push第二步: 切换到master主分支,拉取当前最新状态(多个人合作必须走这步)git checkout mastergit pull第三步: 开始合并分支(那个分支提交了,就合并那个。例如:test分支提交了,如下)git merge test其他有时候合并输入合并命令。git base命令会出现编辑文本,让你原创 2021-11-29 23:30:36 · 935 阅读 · 0 评论 -
git 常用命令 会这些就够了
1、git init 【初始化本地Git仓库】2、git add <file> 【添加文件】3、git status 【查看状态】4、git commit 【提交】5、git push 【推出到仓库】6、git pull 【从远程仓库拉去数据】7、g...原创 2019-03-08 22:42:40 · 202 阅读 · 0 评论