git pull from remote...我可以拉一个特定的提交吗? [英] git pull from remote... can I pull a specific commit?

查看:17
本文介绍了git pull from remote...我可以拉一个特定的提交吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地创建了一个空的新存储库,我添加了一个远程存储库.现在我想从远程存储库中获取特定的提交而不下载整个远程存储库及其所有分支!

I create an empty new repository locally, I add a remote repository. Now I want to get a specific commit from the remote repository without downloading the whole remote repository with all its branches!

我该怎么做?

推荐答案

答案是

git fetch origin 96de5297df870:refs/remotes/origin/D-commit

请参阅从远程 Git 存储库检索特定提交

这篇关于git pull from remote...我可以拉一个特定的提交吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆