You can clone repositories without the whole history (#tilPost)

I was browsing electron boilerplates today and inside of the electron-react-boilerplate I found something interesting. The getting started guide include a git clone –depth=1.
git clone –depth=1 https://github.com/chentsulin/electr…


This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis

I was browsing electron boilerplates today and inside of the electron-react-boilerplate I found something interesting. The getting started guide include a git clone --depth=1.

git clone --depth=1 https://github.com/chentsulin/electron-react-boilerplate.git your-project-name

What's that? I tried it immediatelly.

/tmp ?  ?  ?
▶ git clone --depth=1 https://github.com/chentsulin/electron-react-boilerplate.git your-project-name
Cloning into 'your-project-name'...
...

/tmp ?  ?  ?
▶ cd your-project-name

/tmp/your-project-name ?  ?  ?   master ヾ(⌐■_■)ノ
▶ git lg


* 586b84f Amila Welihinda -  (grafted, HEAD -> master, origin/master, origin/HEAD) Misc code style changes to menu.js (5 weeks ago)
(END)

That's interesting! The git history now only includes the latest commit which makes total sense for a boilerplate.

I'll let you decide if that's a real use case though, because I personally would remove the .git folder and start with a proper "Initial commit" but yeah. ¯_(ツ)_/¯


Reply to Stefan


This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis


Print Share Comment Cite Upload Translate Updates
APA

Stefan Judis | Sciencx (2018-03-11T23:00:00+00:00) You can clone repositories without the whole history (#tilPost). Retrieved from https://www.scien.cx/2018/03/11/you-can-clone-repositories-without-the-whole-history-tilpost/

MLA
" » You can clone repositories without the whole history (#tilPost)." Stefan Judis | Sciencx - Sunday March 11, 2018, https://www.scien.cx/2018/03/11/you-can-clone-repositories-without-the-whole-history-tilpost/
HARVARD
Stefan Judis | Sciencx Sunday March 11, 2018 » You can clone repositories without the whole history (#tilPost)., viewed ,<https://www.scien.cx/2018/03/11/you-can-clone-repositories-without-the-whole-history-tilpost/>
VANCOUVER
Stefan Judis | Sciencx - » You can clone repositories without the whole history (#tilPost). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2018/03/11/you-can-clone-repositories-without-the-whole-history-tilpost/
CHICAGO
" » You can clone repositories without the whole history (#tilPost)." Stefan Judis | Sciencx - Accessed . https://www.scien.cx/2018/03/11/you-can-clone-repositories-without-the-whole-history-tilpost/
IEEE
" » You can clone repositories without the whole history (#tilPost)." Stefan Judis | Sciencx [Online]. Available: https://www.scien.cx/2018/03/11/you-can-clone-repositories-without-the-whole-history-tilpost/. [Accessed: ]
rf:citation
» You can clone repositories without the whole history (#tilPost) | Stefan Judis | Sciencx | https://www.scien.cx/2018/03/11/you-can-clone-repositories-without-the-whole-history-tilpost/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.