|
@@ -0,0 +1,21 @@
|
|
|
+命令行指令
|
|
|
+
|
|
|
+Git 全局设置
|
|
|
+git config --global user.name "liuhx"
|
|
|
+git config --global user.email "liuhx@elab"
|
|
|
+
|
|
|
+创建新版本库
|
|
|
+git clone git@code.aliyun.com:adminRm/test.git
|
|
|
+cd test
|
|
|
+touch README.md
|
|
|
+git add README.md
|
|
|
+git commit -m "add README"
|
|
|
+git push -u origin master
|
|
|
+
|
|
|
+已存在的文件夹或 Git 仓库
|
|
|
+cd existing_folder
|
|
|
+git init
|
|
|
+git remote add origin git@code.aliyun.com:adminRm/test.git
|
|
|
+git add .
|
|
|
+git commit
|
|
|
+git push -u origin master
|