From 62c48c35fd788853588aa069a60f4da45b0f59ce Mon Sep 17 00:00:00 2001 From: terryLP Date: Wed, 28 Aug 2024 15:14:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=86=E6=94=AF=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/readme.md b/readme.md index 3aecc65..19ec44f 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,27 @@ ## readme.md ## Git Command Demo + +### 本地初始化及提交本地仓库 1. git init 2. ```git add *.c``` 3. git commit -m "初始化项目版本" +4. git log + +### 推送改动到远程 +1. git remote add origin <远程地址> //仅一次 +2. git push origin master + + +### 分支操作 +1. 查看分支 +git branch +2. 创建分支 +git branch test +3. 切换分支 +git chekout test +4. 创建并切换分支 +git checkout -b test + +### +