How do I download a git repository without cloning?

How do I download a git repository without cloning?
Answer
git initialises empty git repo in that directory. git connects remote “
.git” with the name “origin” to your git repo.
…
So, lets do the same things manually.
  1. Create directory and enter it. …
  2. Create empty git repo. …
  3. Add remote. …
  4. Fetch everything from remote. …
  5. Switch working directory to the state.
 

Tìm kiếm

Back
Top