GIT Flashcards

1
Q

What command used for showing what revisions and author last modified each line of a file?

A

Git blame

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

What are options for git blame?

A
  • L < start>,< end> means Line used for restricting output to certain lines
  • e option shows authors email
  • w ignore whitespace
  • M detect or copy lines within same file.
  • C detect lines that were moved or copied
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the difference between git blame and log?

A

Git blame is limited to individual file history and displays last author and is often used with online hosting with GUI ,log is more verbose and can show all commits .

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

What is purpose of tagging?

A

Used reference point in git history of commits. Capture a point to such as mark version release a identifiers where there was no change. It’s like a branch that doesn’t change.

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

What is tag command in git?

A

git tag

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

How do you display current state of working directory in git?

A

git status

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

How can you undo a commit?

A

Use git checkout

To get into last st

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

How can you undo a commit?

A

Use git checkout

To get into last st

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

How can you undo a commit?

A

Use git checkout

To get into last st

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