Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在本地创建一个空的新存储库,我添加了一个远程存储库。现在我想从远程存储库中获取特定的提交,而无需下载整个远程存储库及其所有分支!
我怎么做?
答案是
git fetch origin 96de5297df870:refs/remotes/origin/D-commit
请参阅从远程 Git 存储库检索特定提交