⬇️
Remote Repositories

git clone

Downloading a Repository
💡 git, clone, EK, "POORI, LIBRARY, ki, PHOTOCOPY, LE, LENA", jaisa, hai, — sirf, LATEST, KITAAB, nahi, HAR, EDITION, ki, HISTORY, bhi.

"git, clone, <url>" EK, EXISTING, remote, repository, ki, POORI, HISTORY, ko, LOCAL, MACHINE, PAR, DOWNLOAD, kar, deta hai — YE, AUTOMATICALLY, "origin" NAAM, ka, remote, bhi, SETUP, kar, deta hai.

"--depth, 1" flag, se, EK, "SHALLOW, clone" ki, ja, sakti, hai — sirf, LATEST, commit, DOWNLOAD, hota hai, POORI, HISTORY, nahi.

git clone https://github.com/user/repo.git
git clone --depth 1 https://github.com/user/repo.git
⬇️
git, clone, EK, "POORI, LIBRARY, ki, PHOTOCOPY, LE, LENA", jaisa, hai, — sirf, LATEST, KITAAB, nahi, HAR, EDITION, ki, HISTORY, bhi.
1 / 2
⚡ झट से Recap
  • git clone = poori history download karta hai, "origin" remote automatically setup
  • --depth 1 = shallow clone, sirf latest commit
  • Shallow clones CI/CD pipelines mein time/space bachate hain
इस page में (2 subtopics)

"git, clone, <url>" EK, EXISTING, remote, repository, ki, POORI, HISTORY, (SAARE, commits, branches, tags) ko, LOCAL, MACHINE, PAR, DOWNLOAD, kar, deta hai — YE, AUTOMATICALLY, "origin" NAAM, ka, remote, bhi, SETUP, kar, deta hai.

git clone https://github.com/user/repo.git
git clone https://github.com/user/repo.git my-folder-name

"--depth, 1" flag, se, EK, "SHALLOW, clone" ki, ja, sakti, hai — sirf, LATEST, commit, DOWNLOAD, hota hai, POORI, HISTORY, nahi. LARGE, repositories, ke, liye, YE, CLONE, TIME, aur, DISK, SPACE, KAAFI, BACHATA, hai.

💡Tip: CI/CD, pipelines, mein, aksar, SHALLOW, clones, use, hote, HAIN, kyunki, WAHAN, sirf, LATEST, code, ki, ZAROORAT, hoti hai, POORI, HISTORY, ki, nahi.