From 8d6622e77669969fe35d0d661965a0e288d44089 Mon Sep 17 00:00:00 2001 From: wangxinyu <2788673683@qq.com> Date: Tue, 8 Jul 2025 09:34:39 +0800 Subject: [PATCH] change_file_path --- {note => Markdown}/tesk.md | 0 {note => SourceTree}/git学习.md | 25 +++++++++++++++--- .../pictures/图片1.png | Bin hello.c => other/hello.c | 0 4 files changed, 22 insertions(+), 3 deletions(-) rename {note => Markdown}/tesk.md (100%) rename {note => SourceTree}/git学习.md (90%) rename photo/git_tab.png => SourceTree/pictures/图片1.png (100%) rename hello.c => other/hello.c (100%) diff --git a/note/tesk.md b/Markdown/tesk.md similarity index 100% rename from note/tesk.md rename to Markdown/tesk.md diff --git a/note/git学习.md b/SourceTree/git学习.md similarity index 90% rename from note/git学习.md rename to SourceTree/git学习.md index 97a39b3..6dfc304 100644 --- a/note/git学习.md +++ b/SourceTree/git学习.md @@ -60,16 +60,35 @@ git commit -m "name" ### sourceTree +图形化操作 + +#### 分支 + +~~~ bash +#相关操作 +git branch #查看分支 +git branch name #创建分支 +git checkout name #切换分支 + + +# 设置上游分支(第一次推送时) +git push -u origin 分支名 + +# 之后就可以简化命令 +git pull +git push +~~~ -图形化操作 #### 其他 * 回退版本 - ~~~ - git status + ~~~ bash + git status + + git status 哈希值 #回退节点 ~~~ diff --git a/photo/git_tab.png b/SourceTree/pictures/图片1.png similarity index 100% rename from photo/git_tab.png rename to SourceTree/pictures/图片1.png diff --git a/hello.c b/other/hello.c similarity index 100% rename from hello.c rename to other/hello.c