From 488c7155bb4353fb390ca0f8589fe60e29d605d9 Mon Sep 17 00:00:00 2001 From: forgetest5 Date: Mon, 2 Aug 2021 09:17:19 +0800 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index e8bff2d..aa19108 100644 --- a/README.md +++ b/README.md @@ -18,3 +18,23 @@ git push -u origin master ``` +#### 从命令行创建一个新的仓库 + +```bash +touch README.md +git init +git add README.md +git commit -m "first commit" +git remote add origin http://testgitea2.trustie.net/forgetest5/0802projectschy.git +git push -u origin master + +``` + +#### 从命令行推送已经创建的仓库 + +```bash +git remote add origin http://testgitea2.trustie.net/forgetest5/0802projectschy.git +git push -u origin master + +``` +