When you don't want to import the whole history of a git repository, you can use
git clone --depth 1 <repository>
to create a so-called shallow-clone with only the most recent revision. Optionally you can also use --single-branch
to omit any branches except master.