git 101 Flashcards

(17 cards)

1
Q

Difference between distrobuted version control and Centralized Version Control Systems.

A

As the name suggests.

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

main benefits with the distributed

A

the ability for all participants to work offline and independently from each other
that common operations are much faster because there is no need to communicate over the network
that data is backed up with each repository clone

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

Some drawbacks:

A

there is a need to regularly synchronize changes between repositories
a lot of storage space might be required since every participant has a complete copy of all files and their history
there is no locking mechanism which makes managing non-mergable files (like binary files or images) harder

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

what year was git introduced? and what system did it replace? bitkeeper?

A

2005, by linus torvald

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

VCS

A

Version Control System

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

What is Continuous Delivery?

A

Continuous Delivery is the ability to get changes of all types—including new features, configuration changes, bug fixes and experiments—into production

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

Why continuous delivery?

A

it has shown to be better by peer reviewed papers.

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

Another common practice is called “Gitops” , what is it?

A

This is a way to deploy applications automatically based on changes made to files in a Git repository.

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

References (refs), how are they calculated

A

sha1 checksum is the identifier

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

Index or staging area, what is it?

A

when using add you add things to the staging area that is later commited with the commit.

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

Tracked and untracked files, how do they work

A

They are per standard untracked but you could track them if you want.

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

what does git diff compare?

A

working vs staging

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

git log format and flags

A

shows the last commits in order with the last one at the top. This is marked as the head and will be pushed if you push. -n to limit how many there are displayed

You can also supply a formatting string:
$ git log –pretty=format:”%h - %s%nby %an %ar%n”

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

git show, what does it do?

A

shows the last commit changes.

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

git diff with commits, possible? how?

A

git diff 659ccda 6202970

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

git log –graph –all –oneline

A

vad får jag fram då?

17
Q

how remotes work

A

these are other repositories with which changes can be synchronized.