Clone a repository without getting the entire history Git has a feature that we call Shallow Clone; this allows us to make a clone of a repository without taking in the entire history of commits/logs.
How to show a commit’s patch pertaining to a specific path? When viewing the patch of a certain commit with git show <commit> you’re only interested in a certain part of it, related to a file or a directory.