CS FundamentalsHardProduct-company placement · Git

Two artists keep overwriting each other's edits to the same layered .psd file in Git. Why does the usual merge workflow fail, and what fits better?

  1. A. Git cannot store binary files at all, so convert the .psd files to text first
  2. B. The files are too large for Git, so enable shallow clones for both artists
  3. C. The files lack a .gitignore entry, so ignore them and share copies by email
  4. D. Binaries can't be merged line by line, so lock the file while one person edits

Correct answer: D. Binaries can't be merged line by line, so lock the file while one person edits

Optimistic concurrency (edit freely, merge later) works for text. For unmergeable binaries a pessimistic lock-modify-unlock model avoids lost work; Git LFS file locking (and Subversion's svn lock) provide it.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic