From fbca869972ce93da8998fc504dfa1800b3ca5bcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=87=E6=B0=B8=E8=BE=BE?= Date: Wed, 15 Mar 2023 00:10:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/_posts/Git.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 source/_posts/Git.md diff --git a/source/_posts/Git.md b/source/_posts/Git.md new file mode 100644 index 0000000..bfa47cb --- /dev/null +++ b/source/_posts/Git.md @@ -0,0 +1,42 @@ +# Git + +## Git 全局设置: + +```shell +git config --global user.name "wenyongda" +git config --global user.email "bmdzh11713@163.com" +``` + +## 创建 git 仓库: + +```shell +mkdir aaa +cd aaa +git init +touch README.md +git add README.md +git commit -m "first commit" +git remote add origin https://gitee.com/wenyongda/aaa.git +git push -u origin master +``` + +## 已有仓库 + +```shell +cd existing_git_repo +git remote add origin https://gitee.com/wenyongda/aaa.git +git push -u origin master +``` + +## 查看作者名称、作者邮箱 + +```shell +git config user.name +git config user.email +git config --list +``` + + + + +