Introduction
This lab provides a step-by-step guide on how to create a new Git repository using the git init
command, and how to clone an existing Git repository using the git clone
command.
The git init
command is used to create a new repository from scratch, and is typically used when you are starting a new project or when you want to version control an existing project that was not previously under version control.
The git clone
command, on the other hand, is used to create a copy of an existing repository, including all the version history and files, on your local machine. This is useful when you want to contribute to an existing project, or when you want to start working on a project that was already created and shared by someone else.
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
git(("`Git`")) -.-> git/SetupandConfigGroup(["`Setup and Config`"])
git(("`Git`")) -.-> git/BasicOperationsGroup(["`Basic Operations`"])
linux(("`Linux`")) -.-> linux/BasicFileOperationsGroup(["`Basic File Operations`"])
shell(("`Shell`")) -.-> shell/BasicSyntaxandStructureGroup(["`Basic Syntax and Structure`"])
git/SetupandConfigGroup -.-> git/init("`Initialize Repo`")
git/SetupandConfigGroup -.-> git/clone("`Clone Repo`")
git/BasicOperationsGroup -.-> git/add("`Stage Files`")
git/BasicOperationsGroup -.-> git/commit("`Create Commit`")
git/SetupandConfigGroup -.-> git/git("`Show Version`")
linux/BasicFileOperationsGroup -.-> linux/touch("`File Creating/Updating`")
shell/BasicSyntaxandStructureGroup -.-> shell/comments("`Comments`")
shell/BasicSyntaxandStructureGroup -.-> shell/quoting("`Quoting Mechanisms`")
subgraph Lab Skills
git/init -.-> lab-1507{{"`Initialize Git Project`"}}
git/clone -.-> lab-1507{{"`Initialize Git Project`"}}
git/add -.-> lab-1507{{"`Initialize Git Project`"}}
git/commit -.-> lab-1507{{"`Initialize Git Project`"}}
git/git -.-> lab-1507{{"`Initialize Git Project`"}}
linux/touch -.-> lab-1507{{"`Initialize Git Project`"}}
shell/comments -.-> lab-1507{{"`Initialize Git Project`"}}
shell/quoting -.-> lab-1507{{"`Initialize Git Project`"}}
end