Git Flashcards

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

команда выводит состояние изменений (на удал репозитории): не отслеживаются, изменены или подготовлены

A

git status

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

command – downloads commits, files, and refs from a remote repository into your local repo. ____ing is what you do when you want to see what everybody else has been working on
Doeesn’t force you to actually merge the changes into your repository. Git isolates _____ed content from existing local content; it has absolutely no effect on your local development work

A

git fetch

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

локальная рабочая ветка (в лок репозитории)

A

master

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

версия ветки, кот находится на удаленном репозитории

A

origin master

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

локальная, но НЕрабочая версия ветки (промежуточная ветка). Инфо о ней говорит, что есть в origin repository на момент последнего запуска (см git fetch)

A

origin/master

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

апдейт локальной ветки изменениями из удаленного репозитория

A

git pull

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

посмотреть историю всех коммитов, которые происходили

A

git log

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

инфа о последнем коммите

A

git show

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

инфа о конкретном коммите (разница между файлами)

A

git show < hash >

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

инфа о коммитах юзера

A

git log –author <author_name></author_name>

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

инфа об изменениях (кто и что изменял)

A

git blame <file_name></file_name>

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

изменения, внесенные в код

A

commit

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

распределенная система управления версиями

A

git

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

stages a change. This command performs staging, the first part of that two-step process.

A

git add

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

saves the snapshot to the project history and completes the change-tracking process. In short, a _____ functions like taking a photo. Anything that’s been staged with git add will become a part of the snapshot with __ ____

A

git commit

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

saves the snapshot to the project history and completes the change-tracking process (with message)

A

git commit -m “new message”

17
Q
A