@startmindmap
+ git
++ 工作区
+++ 暂存区
++++ 版本库
+ git
++ git init
++ git add
+++ git commit -m " "
++ git status
++ git log
+++ --graph
+++ --pretty=format:"%h %s")
++ git reflog
++ git reset --hard [43f9018]
+ branch
++ git branch
++ git branch [NewBranchName]
++ git branch -d [deleteBranchName]
++ git checkout [BranchName]
++ git checkout master + git merge tobemergedBranch
+ Remote git
++ git init
++ git add fileName
++ git commit -m "commit"
++ git remote add orgin url
++ git push -u origin master
++ git pull origin [BranchName]
+ rebase
++ git rebase -i HEAD~[Number]
++ git rebase -i [commit series number]
++ git rebase master (from dev meger to master)
++ git fetch [dev] + git rebase origin/[dev]
++ confict
+++ solve the confict
+++ git add []
+++ git rebase --continue
@endmindmap
git 命令思维导图
于 2022-04-20 00:04:40 首次发布
这篇博客详细介绍了Git的工作流程,包括从工作区到暂存区,再到版本库的操作,如`git init`、`git add`、`git commit`等。同时,讲解了分支管理,如何创建、切换、删除分支,以及如何合并分支。还涉及远程仓库的交互,如`git push`、`git pull`。此外,提到了冲突解决及rebase操作,帮助读者深入理解Git的高级用法。
摘要由CSDN通过智能技术生成