Questions
Answer the following questions to test your knowledge of this chapter:
- How would you list all commits made since yesterday on any remote-tracking branch?
- How would you find out who the original author of a given function or class was, to ask for clarification or a code review?
- How would you use Git to help find the source of regression — that is, a bug that is present in the new revision of the project, but was not there in older versions?
- You have noticed that your colleague made a few commits with a misconfigured email, using
[email protected]
instead of[email protected]
. How would you fix the attribution, assuming that it is not possible to rewrite those commits?