我是用了git remote 命令后,返回:origin git@github.com:XXX/RN-kismartTemplate.git (fetch) origin git@github.com:XXX/RN-kismartTemplate.git (push)
时间: 2024-03-11 17:47:53 浏览: 183
好的,如果您已经使用 `git remote` 命令将远程仓库添加到本地仓库,并且返回结果显示远程仓库名称为 "origin",那么您可以尝试使用以下命令来拉取远程仓库的最新修改:
```
git pull origin master
```
这个命令将从远程仓库 "origin" 的 "master" 分支拉取最新的修改,并将其合并到您当前所在的本地分支中。如果您的本地分支名称不是 "master",请将命令中的 "master" 替换为您的本地分支名称。
如果您在拉取远程仓库时遇到其他问题,请提供更多详细信息,以便我能够提供更准确的解决方案。
相关问题
Fetching upstream changes from git@github. com:a792883583/treeHoleScore.git > /usr/bin/git --version # timeout=10 > git --version # 'git version 1.8.3.1' using GIT _ASKPASS to set credentials github > /usr/bin/git fetch --tags --progress git@github. com:a792883583/treeHoleScore.git +refs/heads/*:refs/remotes/origin/* # timeout=10 ERROR: Error fetching remote repo 'origin' hudson. plugins.git.GitException: Failed to fetch from git@github. com:a792883583/treeHoleScore.git at hudson. plugins . git .GitSCM. fetchFrom(GitSCM. java:1003) at hudson. plugins .git .GitSCM. retrieveChanges(GitSCM. java:1245) at hudson.plugins.git.GitsCM. checkout(GitSCM. java:1309) at hudson.scm. SCM. checkout(SCM. java:540) at hudson. mode1. AbstractProject . checkout(AbstractProject . java:1240) at hudson. model AbstractBuild$AbstractBuildExecution. def aultCheckout (AbstractBuild. java:649) at jenkins .scm. SCMCheckoutStrategy . checkout(SCMCheckoutStrategy . java:85) at hudson . model. AbstractBuild$AbstractBuildExecution. run(AbstractBuild. java:521) at hudson.model . Run. execute(Run. java:1900) at hudson.model. FreeSty1eBuild.run(FreeStyleBuild.java:44) at hudson. model. ResourceController . execute(ResourceController . java:101) at hudson. model. Executor .run(Executor. java:442) Caused by: hudson. plugins.git .GitException: Command "/usr/bin/git fetch --tags --progress git@github . com: a792883583/treeHoleScore.git +refs/heads/* :refs/remotes/origin/*" returned status code 128: stdout: stderr: Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. at org.jenkinsci .plugins.gitclient .CliGitAPIImp1.1aunchCommandIn(CliGitAPImp1.java:2734) at org.jenkinsci .plugins.gitclient .CliGitAPIImp1.1aunchCommandWithCredentials(CliGitAPIImpl.java:2111) at org.jenkinsci.plugins . gitclient .CliGitAPIImp1$1. execute(CliGitAPIImp1.java:623) at hudson.p1ugins . git .GitSCM. fetchFrom (GitSCM. java:1001) 11 more ERROR: Error fetching remote repo ' origin' Finished: FAILURE
"Fetching upstream changes from git@github.com:a792883583/treeHoleScore.git" 意思是从 "git@github.com:a792883583/treeHoleScore.git" 这个地址获取最新的更改。
"/usr/bin/git --version" 意思是在本地执行 "git" 命令,并使用 "--version" 选项来查看当前 Git 版本。
$ git remote -v my_git_test https://github.com/BKcamptain/git-JustForTest (fetch) my_git_test https://github.com/BKcamptain/git-JustForTest (push) upstream https://github.com/otale/tale.git (fetch) upstream https://github.com/otale/tale.git (push)我的地址正确吗
根据你提供的信息,远程仓库的地址看起来没有问题,可以正常访问。但是你在执行 `git push` 命令时出现了 "Recv failure: Connection was reset" 的错误,这可能是由于网络问题导致的。你可以尝试检查网络连接,或者尝试更换网络环境再次进行操作。如果还是无法解决问题,可以尝试执行以下命令:
```
git config --global http.postBuffer 524288000
```
这个命令会将 Git 的缓存区大小调整为 500 MB,可以避免一些网络问题。希望这个方法可以帮到你。
阅读全文
相关推荐
















