|
@@ -9,8 +9,11 @@
|
|
|
# 首先创建好本地目录
|
|
|
git init
|
|
|
# gogs是命名,一般用origin
|
|
|
-git remote add gogs git-address
|
|
|
-git pull gogs master
|
|
|
+git remote add remoteName git-address
|
|
|
+git pull remoteName branchName
|
|
|
+# 修改git地址
|
|
|
+git remote set-url remoteName newBranchName
|
|
|
+
|
|
|
# 全局设置
|
|
|
# 不设置全局的话,在每一个仓库第一次提交时都需要先设置用户名和邮箱
|
|
|
git config --global user.name "yourName"
|