menu_book Course Curriculum (Git Version Control) expand_more
Repository Foundations
Branches & Merging
History Editing
Remote Collaboration
Selective Workflows
Objects & Internals
Configuration & Hooks
Clone a repository
Learn Clone a repository in Git Version Control with a dedicated explanation, a topic-specific example, edge guidance, and a mastery check.
12 min read
•
Beginner
git-002.sh
shell
rm -rf /tmp/sx-git-2 /tmp/sx-git-2-clone; git init -q /tmp/sx-git-2; git -C /tmp/sx-git-2 config user.name Syntaxis; git -C /tmp/sx-git-2 config user.email lesson@example.test; echo base > /tmp/sx-git-2/README.md; git -C /tmp/sx-git-2 add .; git -C /tmp/sx-git-2 commit -qm base; git clone -q /tmp/sx-git-2 /tmp/sx-git-2-clone; git -C /tmp/sx-git-2-clone log --oneline -1
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content