Algocraft / Git Commands / git init & clone
Two ways to get a repository started: an empty one with no history, or a full copy of one that already exists
init: starting a brand-new project from scratchclone: joining a project that already lives on GitHub/GitLab/etc.init creates a .git folder and an unborn main ref — zero commitsclone downloads every commit, creates local main, and wires up origin tracking automaticallygit clone --depth 1 grabs only the latest commit for a faster, shallow clone