Skip to content

Commit ead8743

Browse files
committed
update
update
1 parent acc5b02 commit ead8743

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

python_advance/Git基础.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ git官网下载windows版本的, https://git-scm.com/downloads
4040

4141
![](../pic/gitdoc/1_3.png)
4242

43+
* 查看所有配置: git config -l
44+
* 查看系统配置:git config --system --list
45+
* 查看本地配置:git config --global --list
46+
* 配置用户名: git config --global user.name "XXX"
47+
* 配置邮箱: git config --global user.email "[email protected]"
48+
* 新建一个分支:git branch [branch-name]
49+
* 新建一个分支并切换到新的分支上:git checkout -b [branch]
50+
* 合并指定分支到当前分支:git merge [branch]
51+
* 删除分支: git branch -d [branch-name]
52+
* 删除远程分支:git push origin --delete [branch-name]
53+
4354
## 二、git使用
4455
### 2.1、用git创建版本库
4556
学习三个git命令:

0 commit comments

Comments
 (0)