Questions
Answer the following questions to test your knowledge of this chapter:
- How can you avoid having a large number of build artifacts appear in the
git
status
output? - Let’s assume that you use a custom domain-specific language (DSL) or a programming language without built-in support in Git, such as Julia. How can you configure Git so that it provides better support for this language?
- How can you squash the two most recent commits while making one commit out of them?
- How can you split the most recent commit into two commits?
- What should you do if an urgent change is needed (for example, because of a security bug) but the working area is in a messy state and you don’t want to lose your work?
- How can you search through an old revision of the project – for example, a version tagged
v0.1
– without checking out that revision?