Udacity lesson 2 Flashcards
create brand new repositories on your computer
git init
list files and directories in terminal
ls
create a new directory in terminal
change the working directory to the directory where the new one should be created
mkdir -p name-of-the-new-one
change directories in terminal
cd
remove files and directories in terminal
rm
learn what’s the working directory now in terminal
pwd
make a new directory and go there
go to the directory where the new one should be created with cd
mkdir -p name-of-the-new-one && cd $_
the last cryptic part will situate you in the newly created directory
what happens if you git init ?
a repository is created
in the file system it’s a .git directory. because of the period it’s hidden. It contains all the structure and files for it to be a working repository for your project.
what does git clone do?
creates a new directory and places the cloned Git repository in it
I want to clone a repo into a directory with a custom name, how do I do that?
git clone link_to_the_original_repo new_name