Skip to content

Commit

Permalink
更改git checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengshuo123 committed Feb 28, 2023
1 parent 6b1e63b commit 044f7e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git使用/git的使用.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
- git reflog,查看所有操作记录
- git remote add \<远程库命名> <URL\> ,添加一个远程库,git remote -v查看对应的地址
- git branch \<分支名> \<版本号>,创建版本号的分支,git branch -v查看详细信息
- git checkout \<分支名>,切换分支,当前工作区也会随之变化
- git checkout \<分支名/版本号>,切换分支/版本号,当前工作区也会随之变化
- git merge \<分支名>,把分支名合并到当前分支,工作区会更新
- git rebase <分支名>,把当前分支与分支名的共同父级开始的所有当前分支历史版本添加到分支名的当前版本后面
- git reset --hard "版本号",版本穿梭,可切换到任意版本,工作区会变化,历史记录消失
Expand Down

0 comments on commit 044f7e6

Please sign in to comment.