Git Flashcards

https://vimeo.com/280579162

1
Q

Why should you build novel length commit messages?

A

Commit messages should show WHY a change was made. Remember about the in-memory ordering caused by a default ordering in an ActiveRecord model that was removed after a while, but no one removed the in-memory ordering. https://vimeo.com/28AC0579162

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

Should you use git commit -m

A

No, the command line is not the place to write long commit messages explaining why a change was made.

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

What is better than git blame?

A

The pickaxe:

git log -S snippet_of_code

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

What is important in a commit message?

A

Explaining the WHY

NOT the what

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

Should you leave not valuable commits in history?

A

No, treat your commits as mutable. Use amend and rebase.

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