lifuquan 2 anni fa
parent
commit
2c4d69d20f
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5 2
      git_gogs/git.md

+ 5 - 2
git_gogs/git.md

@@ -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"