Udacity lesson 2 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

create brand new repositories on your computer

A

git init

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

list files and directories in terminal

A

ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

create a new directory in terminal

A

change the working directory to the directory where the new one should be created

mkdir -p name-of-the-new-one

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

change directories in terminal

A

cd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

remove files and directories in terminal

A

rm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

learn what’s the working directory now in terminal

A

pwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

make a new directory and go there

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what happens if you git init ?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what does git clone do?

A

creates a new directory and places the cloned Git repository in it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

I want to clone a repo into a directory with a custom name, how do I do that?

A

git clone link_to_the_original_repo new_name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly