|
@@ -1,23 +1,23 @@
|
|
|
#### 克隆当前仓库 不知道如何操作?访问 此处 查看帮助!
|
|
|
-## root@git.mintelcn.com:Minte-development/Test-project.git
|
|
|
+
|
|
|
+
|
|
|
+## 配置git用户名及邮箱告诉他我是谁
|
|
|
+## 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 -u origin master
|
|
|
+## git push origin master --force
|
|
|
+## --force 表示强制本地覆盖线上
|
|
|
+
|
|
|
+
|
|
|
## 从命令行推送已经创建的仓库
|
|
|
## git remote add origin root@git.mintelcn.com:Minte-development/Test-project.git
|
|
|
-## git push -u origin master克隆当前仓库 不知道如何操作?访问 此处 查看帮助!
|
|
|
-## 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 -u origin master
|
|
|
-## 从命令行推送已经创建的仓库
|
|
|
-## git remote add origin root@git.mintelcn.com:Minte-development/Test-project.git
|
|
|
-## git push -u origin master
|
|
|
+## git push origin master --force
|
|
|
+## --force 表示强制本地覆盖线上
|