Git pull out of the remote ... can I pull out a specific commit?

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

How to do it?

+4
source share
1 answer

Answer

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

See Get a specific commit from a remote Git repository

+4
source

Source: https://habr.com/ru/post/1483186/


All Articles