Category: PHP, git, javascript

There comes a time when you want to https://git-scm.com/docs/git-clone a Git repository through GitHub or a similar client but at the same time, you don’t want the entire history of that repository. This can help speed up the entire git clone process for you. There’s a provision to do just that in Git. So, for instance, if you only want the last commit from a Git repository, it can be done by specifying the --depth option followed by the number of recent commits you want in the git clone command.

As you can tell, Git will retrieve the latest commit for this repository and if you git log under this repository, you’ll only see that particular commit in the list.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners