|
@@ -1,23 +1,73 @@
|
|
|
-#### 克隆当前仓库 不知道如何操作?访问 此处 查看帮助!
|
|
|
|
|
|
+### * 配置git用户名及邮箱告诉他我是谁
|
|
|
|
|
|
-## 配置git用户名及邮箱告诉他我是谁
|
|
|
-## git config --global user.name ‘test'
|
|
|
-## git config --global user.email ‘test@qq.com’
|
|
|
+```
|
|
|
+git config --global user.name ‘test'
|
|
|
+git config --global user.email ‘test@qq.com’
|
|
|
+```
|
|
|
+### * 克隆当前仓库
|
|
|
|
|
|
-### root@git.mintelcn.com:Minte-development/Test-project.git
|
|
|
+```
|
|
|
+touch README.md
|
|
|
+git init
|
|
|
+git add README.md
|
|
|
+git commit -m "first commit"
|
|
|
+git remote add origin root@git.mintelcn.com:Minte-development/Test-project.git
|
|
|
+git push origin master --force
|
|
|
+# --force 表示强制本地覆盖线上
|
|
|
+```
|
|
|
|
|
|
-## 从命令行创建一个新的仓库
|
|
|
-## touch README.md
|
|
|
-## git init
|
|
|
-## git add README.md
|
|
|
-## git commit -m "first commit"
|
|
|
-## git remote add origin root@git.mintelcn.com:Minte-development/Test-project.git
|
|
|
-## git push origin master --force
|
|
|
-## --force 表示强制本地覆盖线上
|
|
|
+### * 从命令行推送已经创建的仓库
|
|
|
+```
|
|
|
+git remote add origin root@git.mintelcn.com:Minte-development/Test-project.git
|
|
|
+git push origin master --force
|
|
|
+# --force 表示强制本地覆盖线上
|
|
|
+```
|
|
|
+### * 配置git用户名及邮箱告诉他我是谁
|
|
|
|
|
|
+```
|
|
|
+git config --global user.name ‘test'
|
|
|
+git config --global user.email ‘test@qq.com’
|
|
|
+```
|
|
|
+### * 克隆当前仓库
|
|
|
|
|
|
-## 从命令行推送已经创建的仓库
|
|
|
-## git remote add origin root@git.mintelcn.com:Minte-development/Test-project.git
|
|
|
-## git push origin master --force
|
|
|
-## --force 表示强制本地覆盖线上
|
|
|
+```
|
|
|
+touch README.md
|
|
|
+git init
|
|
|
+git add README.md
|
|
|
+git commit -m "first commit"
|
|
|
+git remote add origin root@git.mintelcn.com:Minte-development/Test-project.git
|
|
|
+git push origin master --force
|
|
|
+# --force 表示强制本地覆盖线上
|
|
|
+```
|
|
|
+
|
|
|
+### * 从命令行推送已经创建的仓库
|
|
|
+```
|
|
|
+git remote add origin root@git.mintelcn.com:Minte-development/Test-project.git
|
|
|
+git push origin master --force
|
|
|
+# --force 表示强制本地覆盖线上
|
|
|
+```
|
|
|
+### * 配置git用户名及邮箱告诉他我是谁
|
|
|
+
|
|
|
+```
|
|
|
+git config --global user.name ‘test'
|
|
|
+git config --global user.email ‘test@qq.com’
|
|
|
+```
|
|
|
+### * 克隆当前仓库
|
|
|
+
|
|
|
+```
|
|
|
+touch README.md
|
|
|
+git init
|
|
|
+git add README.md
|
|
|
+git commit -m "first commit"
|
|
|
+git remote add origin root@git.mintelcn.com:Minte-development/Test-project.git
|
|
|
+git push origin master --force
|
|
|
+# --force 表示强制本地覆盖线上
|
|
|
+```
|
|
|
+
|
|
|
+### * 从命令行推送已经创建的仓库
|
|
|
+```
|
|
|
+git remote add origin root@git.mintelcn.com:Minte-development/Test-project.git
|
|
|
+git push origin master --force
|
|
|
+# --force 表示强制本地覆盖线上
|
|
|
+```
|