git Flashcards

1
Q

What does “change” means in git terminology?

A

change(in terminology of git:commit)

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

What is git repository?

A

A Git Repository is nothing but a folder with a special sub-folder called .git lies within.

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

How to check what is tracked (changes to be committed) and what is not tracked?

A

enter “git console” in console

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

how to commit? Do you need to choose which file to commit?

A

You don’t need to choose. Commit is just commit all your “tracked” files

git commit -m “You put your commit message here.”

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

What is a repository called besides a repository?

A

project

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

In gitlab, what is a remote?

A

A remote is basically a repository hosted in other machines on the internet instead of your own machine.

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

What do this comment do?

git remote add origin git@gitlab.com:/tecky-exercises.git

A

The command above add your gitlab repository as your origin which is the default name of a remote in git. A remote is basically a repository hosted in other machines on the internet instead of your own machine.

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

When we push, what is the best practice?

A

git push origin master

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

According to Valentin Despa Youtuber, what is commit like?

A

a snapshot of the repository at the certain time

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

When you wanna commit something, the console says “nothing to commit (create/copy files and use “git add” to track)”, what does it mean?

A

It means you have not made any changes to this folder where the git repository is essentially we haven’t added any files we haven’t changed any files we havent deleted any files, nothing to commit

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

According to youtuber Valentin Despa, what does untracked file means?

A

It means the files are not prepred to be committed, they are not prepared to be add to git

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

If before a file was staged and commited, if I make change to that file now, is this file tracked or untracked?

A

it is TRACKED although in git status says : Changes not staged for commit: modified: ABC__filename)

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

How to make something disappear in CSS

A

.navbar-toggler-icon{
display:none;
}

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